mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +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;
|
olen = len + 1;
|
||||||
out = malloc(olen);
|
out = malloc(olen);
|
||||||
if (!out) {
|
if (!out) {
|
||||||
wwarning(_("out of memory during expansion of \"%s\""));
|
wwarning(_("out of memory during expansion of \"%s\""), cmdline);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
*out = 0;
|
*out = 0;
|
||||||
@@ -664,7 +664,7 @@ char *ExpandOptions(WScreen * scr, char *cmdline)
|
|||||||
olen += slen;
|
olen += slen;
|
||||||
nout = realloc(out, olen);
|
nout = realloc(out, olen);
|
||||||
if (!nout) {
|
if (!nout) {
|
||||||
wwarning(_("out of memory during expansion of \"%w\""));
|
wwarning(_("out of memory during expansion of \"%%w\""));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
out = nout;
|
out = nout;
|
||||||
@@ -681,7 +681,7 @@ char *ExpandOptions(WScreen * scr, char *cmdline)
|
|||||||
olen += slen;
|
olen += slen;
|
||||||
nout = realloc(out, olen);
|
nout = realloc(out, olen);
|
||||||
if (!nout) {
|
if (!nout) {
|
||||||
wwarning(_("out of memory during expansion of \"%W\""));
|
wwarning(_("out of memory during expansion of \"%%W\""));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
out = nout;
|
out = nout;
|
||||||
@@ -698,7 +698,7 @@ char *ExpandOptions(WScreen * scr, char *cmdline)
|
|||||||
olen += slen;
|
olen += slen;
|
||||||
nout = realloc(out, olen);
|
nout = realloc(out, olen);
|
||||||
if (!nout) {
|
if (!nout) {
|
||||||
wwarning(_("out of memory during expansion of \"%a\""));
|
wwarning(_("out of memory during expansion of \"%%a\""));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
out = nout;
|
out = nout;
|
||||||
@@ -727,7 +727,7 @@ char *ExpandOptions(WScreen * scr, char *cmdline)
|
|||||||
olen += slen;
|
olen += slen;
|
||||||
nout = realloc(out, olen);
|
nout = realloc(out, olen);
|
||||||
if (!nout) {
|
if (!nout) {
|
||||||
wwarning(_("out of memory during expansion of \"%d\""));
|
wwarning(_("out of memory during expansion of \"%%d\""));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
out = nout;
|
out = nout;
|
||||||
@@ -748,7 +748,7 @@ char *ExpandOptions(WScreen * scr, char *cmdline)
|
|||||||
olen += slen;
|
olen += slen;
|
||||||
nout = realloc(out, olen);
|
nout = realloc(out, olen);
|
||||||
if (!nout) {
|
if (!nout) {
|
||||||
wwarning(_("out of memory during expansion of \"%s\""));
|
wwarning(_("out of memory during expansion of \"%%s\""));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
out = nout;
|
out = nout;
|
||||||
|
|||||||
Reference in New Issue
Block a user