lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev StrAllocVsprintf (fmt_ptr): Memory exhausted!


From: Klaus Weide
Subject: Re: lynx-dev StrAllocVsprintf (fmt_ptr): Memory exhausted!
Date: Sun, 21 Nov 1999 19:27:48 -0600 (CST)

If you look where that message is produced, you find in HTString.c:


#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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]