Mercurial > libpst
diff src/lzfu.c @ 37:ddfb25318812 stable-0-5-8
more valgrind fixes
author | carl |
---|---|
date | Fri, 10 Aug 2007 08:06:13 -0700 |
parents | 6fe121a971c9 |
children | 183ae993b9ad |
line wrap: on
line diff
--- a/src/lzfu.c Thu Aug 09 15:46:34 2007 -0700 +++ b/src/lzfu.c Fri Aug 10 08:06:13 2007 -0700 @@ -69,8 +69,10 @@ memcpy(dict, LZFU_INITDICT, LZFU_INITLENGTH); dict_length = LZFU_INITLENGTH; memcpy(&lzfuhdr, rtfcomp, sizeof(lzfuhdr)); - LE32_CPU(lzfuhdr.cbSize); LE32_CPU(lzfuhdr.cbRawSize); - LE32_CPU(lzfuhdr.dwMagic); LE32_CPU(lzfuhdr.dwCRC); + LE32_CPU(lzfuhdr.cbSize); + LE32_CPU(lzfuhdr.cbRawSize); + LE32_CPU(lzfuhdr.dwMagic); + LE32_CPU(lzfuhdr.dwCRC); /* printf("total size: %d\n", lzfuhdr.cbSize+4); printf("raw size : %d\n", lzfuhdr.cbRawSize); printf("compressed: %s\n", (lzfuhdr.dwMagic == LZFU_COMPRESSED ? "yes" : "no")); @@ -122,7 +124,7 @@ // we should do that out_buf[out_ptr++] = '}'; out_buf[out_ptr++] = '}'; + *size = out_ptr; out_buf[out_ptr++] = '\0'; - *size = out_ptr; return out_buf; }