[hackers] [sbase] uudecode: add newline to out-of-range error || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Tue, 24 Mar 2015 23:53:59 +0100 (CET)

commit ddeb4c0e3569d32dde71ca3a0b76571afe84e17d
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Feb 20 14:35:28 2015 +0100

    uudecode: add newline to out-of-range error

diff --git a/uudecode.c b/uudecode.c
index 0bae296..350dd5d 100644
--- a/uudecode.c
+++ b/uudecode.c
_AT_@ -165,7 +165,7 @@ uudecode(FILE *fp, FILE *outfp)
 
 #define DEC(c) (((c) - ' ') & 077) /* single character decode */
 #define IS_DEC(c) ( (((c) - ' ') >= 0) && (((c) - ' ') <= 077 + 1) )
-#define OUT_OF_RANGE(c) eprintf("character %c out of range: [%d-%d]", (c), 1 + ' ', 077 + ' ' + 1)
+#define OUT_OF_RANGE(c) eprintf("character %c out of range: [%d-%d]\n", (c), 1 + ' ', 077 + ' ' + 1)
 
         while ((len = getline(&bufb, &n, fp)) != -1) {
                 p = bufb;
Received on Tue Mar 24 2015 - 23:53:59 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 25 2015 - 00:10:42 CET