diff --git a/src/common.h b/src/common.h index 23c02b8c..84fead91 100644 --- a/src/common.h +++ b/src/common.h @@ -58,6 +58,7 @@ #define SF_TEXT_LEN (1024) #define SF_SYSERR_LEN (256) #define SF_MAX_STRINGS (16) +#define SF_STR_BUFFER_LEN (4096) #define PSF_SEEK_ERROR ((sf_count_t) -1) @@ -217,7 +218,7 @@ typedef struct sf_private_tag ** sound files. */ STR_DATA strings [SF_MAX_STRINGS] ; - char str_storage [SF_BUFFER_LEN] ; + char str_storage [SF_STR_BUFFER_LEN] ; char *str_end ; int str_flags ; diff --git a/src/strings.c b/src/strings.c index 4a08fdd8..2433f9b0 100644 --- a/src/strings.c +++ b/src/strings.c @@ -85,9 +85,9 @@ psf_store_string (SF_PRIVATE *psf, int str_type, const char *str) #if STRINGS_DEBUG - psf_log_printf (psf, "str_storage : %X\n", (int) psf->str_storage) ; - psf_log_printf (psf, "str_end : %X\n", (int) psf->str_end) ; - psf_log_printf (psf, "sizeof (storage) : %d\n", SIGNED_SIZEOF (psf->str_storage)) ; + psf_log_printf (psf, "str_storage : %X\n", (int) psf->str_storage) ; + psf_log_printf (psf, "str_end : %X\n", (int) psf->str_end) ; + psf_log_printf (psf, "sizeof (str_storage) : %d\n", SIGNED_SIZEOF (psf->str_storage)) ; #endif len_remaining = SIGNED_SIZEOF (psf->str_storage) - (psf->str_end - psf->str_storage) ;