mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
Trivial format string fixes
This commit is contained in:
committed by
Carlos R. Mafra
parent
ef7c45df53
commit
61a96e79c4
12
src/misc.c
12
src/misc.c
@@ -611,7 +611,7 @@ char *ExpandOptions(WScreen * scr, char *cmdline)
|
||||
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;
|
||||
@@ -664,7 +664,7 @@ char *ExpandOptions(WScreen * scr, char *cmdline)
|
||||
olen += slen;
|
||||
nout = realloc(out, olen);
|
||||
if (!nout) {
|
||||
wwarning(_("out of memory during expansion of \"%w\""));
|
||||
wwarning(_("out of memory during expansion of \"%%w\""));
|
||||
goto error;
|
||||
}
|
||||
out = nout;
|
||||
@@ -681,7 +681,7 @@ char *ExpandOptions(WScreen * scr, char *cmdline)
|
||||
olen += slen;
|
||||
nout = realloc(out, olen);
|
||||
if (!nout) {
|
||||
wwarning(_("out of memory during expansion of \"%W\""));
|
||||
wwarning(_("out of memory during expansion of \"%%W\""));
|
||||
goto error;
|
||||
}
|
||||
out = nout;
|
||||
@@ -698,7 +698,7 @@ char *ExpandOptions(WScreen * scr, char *cmdline)
|
||||
olen += slen;
|
||||
nout = realloc(out, olen);
|
||||
if (!nout) {
|
||||
wwarning(_("out of memory during expansion of \"%a\""));
|
||||
wwarning(_("out of memory during expansion of \"%%a\""));
|
||||
goto error;
|
||||
}
|
||||
out = nout;
|
||||
@@ -727,7 +727,7 @@ char *ExpandOptions(WScreen * scr, char *cmdline)
|
||||
olen += slen;
|
||||
nout = realloc(out, olen);
|
||||
if (!nout) {
|
||||
wwarning(_("out of memory during expansion of \"%d\""));
|
||||
wwarning(_("out of memory during expansion of \"%%d\""));
|
||||
goto error;
|
||||
}
|
||||
out = nout;
|
||||
@@ -748,7 +748,7 @@ char *ExpandOptions(WScreen * scr, char *cmdline)
|
||||
olen += slen;
|
||||
nout = realloc(out, olen);
|
||||
if (!nout) {
|
||||
wwarning(_("out of memory during expansion of \"%s\""));
|
||||
wwarning(_("out of memory during expansion of \"%%s\""));
|
||||
goto error;
|
||||
}
|
||||
out = nout;
|
||||
|
||||
Reference in New Issue
Block a user