[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev StrAllocVsprintf (fmt_ptr): Memory exhausted!
From: |
T.E.Dickey |
Subject: |
Re: lynx-dev StrAllocVsprintf (fmt_ptr): Memory exhausted! |
Date: |
Sun, 21 Nov 1999 21:12:00 -0500 (EST) |
>
> If you look where that message is produced, you find in HTString.c:
I overlooked this -
for SunOS, that assumption does not hold...
> #ifdef SAVE_TIME_NOT_SPACE
> /* the following assumes that 0 as first arg to realloc works
> portably like malloc; if that isn't the case, change to use
> HTAlloc. - kw */
> if (!fmt_ptr || fmt_len < need*NUM_WIDTH)
> if ((fmt_ptr = realloc(fmt_ptr, need*NUM_WIDTH)) == 0) {
> outofmem(__FILE__, "StrAllocVsprintf (fmt_ptr)");
>
>
> So, try s/realloc/HTAlloc/ (the following two, only).
>
> Or make SAVE_TIME_NOT_SPACE undefined.
>
> Klaus
--
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey