[hackers] [sbase] Don't allow backslash at EOF || sin

From: <git_AT_suckless.org>
Date: Mon, 06 Jan 2014 19:17:48 +0100

commit bb4d7a0e7ebcfcc14a3e692827d46fe64d8a69fb
Author: sin <sin_AT_2f30.org>
Date: Mon Jan 6 18:16:34 2014 +0000

    Don't allow backslash at EOF

diff --git a/xargs.c b/xargs.c
index 1bbf58c..800d4e8 100644
--- a/xargs.c
+++ b/xargs.c
_AT_@ -168,7 +168,9 @@ parseescape(void)
         if ((ch = inputc()) != EOF) {
                 fillbuf(ch);
                 argbpos++;
+ return;
         }
+ enprintf(EXIT_FAILURE, "backslash at EOF
");
 }
 
 static char *
Received on Mon Jan 06 2014 - 19:17:48 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 06 2014 - 19:24:12 CET