Changeset 171 for trunk/src/sh_unix.c
- Timestamp:
- Jul 8, 2008, 11:16:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_unix.c
r170 r171 3773 3773 { 3774 3774 #ifdef HAVE_LIBZ 3775 unsigned long clen = compressBound(sh_string_len(content)); 3776 unsigned char * compressed = SH_ALLOC(clen); 3775 unsigned long clen; 3776 unsigned char * compressed; 3777 #ifdef HAVE_COMPRESSBOUND 3778 clen = compressBound(sh_string_len(content)); 3779 #else 3780 if (sh_string_len(content) > 10*SH_TXT_MAX) 3781 clen = SH_TXT_MAX; 3782 else 3783 clen = 13 + (int)(1.0001*sh_string_len(content)); 3784 #endif 3785 compressed = SH_ALLOC(clen); 3777 3786 if (Z_OK == compress(compressed, &clen, 3778 3787 (unsigned char *) sh_string_str(content),
Note:
See TracChangeset
for help on using the changeset viewer.