diff options
author | Takayuki MATSUOKA <takayuki.matsuoka@gmail.com> | 2015-02-12 14:50:14 (GMT) |
---|---|---|
committer | Takayuki MATSUOKA <takayuki.matsuoka@gmail.com> | 2015-03-02 04:38:30 (GMT) |
commit | dcdd628d5ec8a78401dbe277151e7654e300eafc (patch) | |
tree | f370a76fcac8b0508b53d32617ae7c84b95c0dd2 | |
parent | de5c930c901539082c57193b390fa3666a732883 (diff) | |
download | lz4-dcdd628d5ec8a78401dbe277151e7654e300eafc.zip lz4-dcdd628d5ec8a78401dbe277151e7654e300eafc.tar.gz lz4-dcdd628d5ec8a78401dbe277151e7654e300eafc.tar.bz2 |
Fix sentinel bit pattern
Set all bits of U64.
-rw-r--r-- | programs/lz4io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index 03d93af..109db98 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -668,7 +668,7 @@ static unsigned long long decodeLZ4S(FILE* finput, FILE* foutput) inBuff = (char*)malloc(inBuffSize); #if defined(LZ4IO_ENABLE_SPARSE_FILE) outBuff = (char*)malloc(outBuffSize+sizeof(U64)); - outBuff[outBuffSize] = 1; /* sentinel */ + *(U64*) &outBuff[outBuffSize] = (U64) -1; /* sentinel */ #else /* LZ4IO_ENABLE_SPARSE_FILE */ outBuff = (char*)malloc(outBuffSize); #endif /* LZ4IO_ENABLE_SPARSE_FILE */ |