summaryrefslogtreecommitdiffstats
path: root/programs/lz4io.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-03-16 21:35:02 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-03-16 21:35:02 (GMT)
commitda9402c6f563ded59a41c772afb9307962833d60 (patch)
treeb59bbc4fa37cb19fe8be44888da385e6af8c17ef /programs/lz4io.c
parent859fe3bb1d5ccadc10bd6b03b31e762397cf346e (diff)
downloadlz4-da9402c6f563ded59a41c772afb9307962833d60.zip
lz4-da9402c6f563ded59a41c772afb9307962833d60.tar.gz
lz4-da9402c6f563ded59a41c772afb9307962833d60.tar.bz2
minor lz4frame refactoring
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r--programs/lz4io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c
index 13d1887..67769d2 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -627,18 +627,18 @@ static unsigned long long decodeLZ4S(FILE* finput, FILE* foutput)
if (storedSkips > 1 GB)
{
seekResult = fseek(foutput, 1 GB, SEEK_CUR);
- if (seekResult != 0) EXM_THROW(68, "1 GB skip error (sparse file)\n");
+ if (seekResult != 0) EXM_THROW(68, "1 GB skip error (sparse file)");
storedSkips -= 1 GB;
}
if (skippedLength != seg0Size)
{
seekResult = fseek(foutput, storedSkips, SEEK_CUR);
- if (seekResult != 0) EXM_THROW(68, "Skip error (sparse file)\n");
+ if (seekResult) EXM_THROW(68, "Skip error (sparse file)");
storedSkips = 0;
seg0Size -= skippedLength;
oBuffPos += skippedLength;
sizeCheck = fwrite(oBuffPos, 1, seg0Size, foutput);
- if (sizeCheck != seg0Size) EXM_THROW(68, "Write error : cannot write decoded block\n");
+ if (sizeCheck != seg0Size) EXM_THROW(68, "Write error : cannot write decoded block");
}
oBuffPos += seg0Size;
}
@@ -646,7 +646,7 @@ static unsigned long long decodeLZ4S(FILE* finput, FILE* foutput)
else
{
sizeCheck = fwrite(outBuff, 1, decodedBytes, foutput);
- if (sizeCheck != decodedBytes) EXM_THROW(68, "Write error : cannot write decoded block\n");
+ if (sizeCheck != decodedBytes) EXM_THROW(68, "Write error : cannot write decoded block");
}
}