Mercurial > libpst
diff src/lzfu.c @ 172:6954d315aaa8
move version-info into main configure.in, and set it properly.
prefix all external symbols in the shared library with pst_ to avoid symbol clashes with other shared libraries.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 04 Apr 2009 16:00:48 -0700 |
parents | e35fd42bac05 |
children | cf3df962f1e5 |
line wrap: on
line diff
--- a/src/lzfu.c Sun Mar 29 08:51:13 2009 -0700 +++ b/src/lzfu.c Sat Apr 04 16:00:48 2009 -0700 @@ -35,7 +35,7 @@ } lzfuheader; -char* lzfu_decompress(char* rtfcomp, uint32_t compsize, size_t *size) { +char* pst_lzfu_decompress(char* rtfcomp, uint32_t compsize, size_t *size) { unsigned char dict[4096]; // the dictionary buffer unsigned int dict_length = 0; // the dictionary pointer lzfuheader lzfuhdr; // the header of the lzfu block @@ -63,7 +63,7 @@ //printf("CRC : %#x\n", lzfuhdr.dwCRC); //printf("\n"); out_size = lzfuhdr.cbRawSize; - out_buf = (char*)xmalloc(out_size); + out_buf = (char*)pst_malloc(out_size); in_ptr = sizeof(lzfuhdr); // Make sure to correct lzfuhdr.cbSize with 4 bytes before comparing // to compsize