Author unknown; taken from openSUSE
src/misc.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
# HG changeset patch # User John H. Robinson, IV <[email protected]> # Date 1253564384 25200 # Node ID af2c88f2155c77560ddbe6067d1094ce637eeefc # Parent a82ffb9167078a63b00eca64e0742668420b7597 Report cause of out of memory warnings Author unknown; taken from openSUSE diff --git a/src/misc.c b/src/misc.c --- a/src/misc.c +++ b/src/misc.c @@ -696,7 +696,7 @@ olen = len+1; out = malloc(olen); if (!out) { - wwarning(_("out of memory during expansion of \"%s\"")); + wwarning(_("out of memory during expansion of \"%s\""), cmdline); return NULL; } *out = 0; @@ -785,7 +785,8 @@ olen += slen; nout = realloc(out,olen); if (!nout) { - wwarning(_("out of memory during expansion of \"%a\"")); + wwarning(_("out of memory during expansion of \"%a\""), + user_input); goto error; } out = nout; @@ -835,7 +836,8 @@ olen += slen; nout = realloc(out,olen); if (!nout) { - wwarning(_("out of memory during expansion of \"%s\"")); + wwarning(_("out of memory during expansion of \"%s\""), + selection); goto error; } out = nout;
