Fix \c behaviour
The loop magic broke along the way. Just drop that and write a proper early exit (= termination). Now it should work as expected.
This commit is contained in:
parent
26168d5c37
commit
5a13865385
4
printf.c
4
printf.c
|
@ -102,7 +102,9 @@ main(int argc, char *argv[])
|
||||||
case 'b':
|
case 'b':
|
||||||
if ((tmp = strstr(arg, "\\c"))) {
|
if ((tmp = strstr(arg, "\\c"))) {
|
||||||
*tmp = 0;
|
*tmp = 0;
|
||||||
argi = argc;
|
unescape(arg);
|
||||||
|
fputs(arg, stdout);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
unescape(arg);
|
unescape(arg);
|
||||||
fputs(arg, stdout);
|
fputs(arg, stdout);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user