Ignore:
Timestamp:
Mar 21, 2018, 11:06:08 PM (7 years ago)
Author:
bird
Message:

kBuiltinOptEnvDuplicat, append: Fixed allocation bug in kBuiltinOptEnvDuplicate; improved out of memory message so.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/append.c

    r3172 r3177  
    123123            pBuf->pszBuf = NULL;
    124124            pBuf->cbBuf  = 0;
     125            pBuf->offBuf = offNew;
    125126            pBuf->fOutOfMemory = 1;
    126127            return;
     
    448449    }
    449450    else
    450         rc = errx(1, "out of memory!");
     451        rc = errx(1, "out of memory for output buffer! (%u needed)", OutBuf.offBuf + 1);
    451452    return rc;
    452453}
Note: See TracChangeset for help on using the changeset viewer.