[hackers] [sbase] Fix \c behaviour || FRIGN

From: <git_AT_suckless.org>
Date: Mon, 16 Feb 2015 10:59:10 +0100 (CET)

commit 87bd26e80e4e6daf81870e94d71e9d7230542d70
Author: FRIGN <dev_AT_frign.de>
Date: Mon Feb 16 10:30:19 2015 +0100

    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.

diff --git a/printf.c b/printf.c
index e57562c..3563790 100644
--- a/printf.c
+++ b/printf.c
_AT_@ -102,7 +102,9 @@ main(int argc, char *argv[])
                 case 'b':
                         if ((tmp = strstr(arg, "\\c"))) {
                                 *tmp = 0;
- argi = argc;
+ unescape(arg);
+ fputs(arg, stdout);
+ return 0;
                         }
                         unescape(arg);
                         fputs(arg, stdout);
Received on Mon Feb 16 2015 - 10:59:10 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 16 2015 - 11:00:12 CET