Author unknown; taken from openSUSE
(transplanted from af2c88f2155c77560ddbe6067d1094ce637eeefc)


 src/misc.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


# HG changeset patch
# User John H. Robinson, IV <[email protected]>
# Date 1253564384 25200
# Branch wm_0_92
# Node ID f9a403caf8a4e776bf1293c4e3209aea2d54cffd
# Parent  711f1137601f8641fe6df0903f89d0fea39b9a82
Report cause of out of memory warnings

Author unknown; taken from openSUSE
(transplanted from af2c88f2155c77560ddbe6067d1094ce637eeefc)

diff --git a/src/misc.c b/src/misc.c
--- a/src/misc.c
+++ b/src/misc.c
@@ -733,7 +733,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;
@@ -821,7 +821,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;
@@ -871,7 +872,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;

Reply via email to