diff options
Diffstat (limited to 'gzio.c')
-rw-r--r-- | gzio.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -13,7 +13,8 @@ | |||
13 | 13 | ||
14 | struct internal_state {int dummy;}; /* for buggy compilers */ | 14 | struct internal_state {int dummy;}; /* for buggy compilers */ |
15 | 15 | ||
16 | #define Z_BUFSIZE 4096 | 16 | #define Z_BUFSIZE 16384 |
17 | #define Z_PRINTF_BUFSIZE 4096 | ||
17 | 18 | ||
18 | #define ALLOC(size) malloc(size) | 19 | #define ALLOC(size) malloc(size) |
19 | #define TRYFREE(p) {if (p) free(p);} | 20 | #define TRYFREE(p) {if (p) free(p);} |
@@ -506,7 +507,7 @@ int ZEXPORT gzwrite (file, buf, len) | |||
506 | 507 | ||
507 | int ZEXPORTVA gzprintf (gzFile file, const char *format, /* args */ ...) | 508 | int ZEXPORTVA gzprintf (gzFile file, const char *format, /* args */ ...) |
508 | { | 509 | { |
509 | char buf[Z_BUFSIZE]; | 510 | char buf[Z_PRINTF_BUFSIZE]; |
510 | va_list va; | 511 | va_list va; |
511 | int len; | 512 | int len; |
512 | 513 | ||
@@ -531,7 +532,7 @@ int ZEXPORTVA gzprintf (file, format, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, | |||
531 | int a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, | 532 | int a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, |
532 | a11, a12, a13, a14, a15, a16, a17, a18, a19, a20; | 533 | a11, a12, a13, a14, a15, a16, a17, a18, a19, a20; |
533 | { | 534 | { |
534 | char buf[Z_BUFSIZE]; | 535 | char buf[Z_PRINTF_BUFSIZE]; |
535 | int len; | 536 | int len; |
536 | 537 | ||
537 | #ifdef HAS_snprintf | 538 | #ifdef HAS_snprintf |