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

From: <git_AT_suckless.org>
Date: Fri, 20 Feb 2015 14:48:26 +0100 (CET)

commit 3dc40b4ddf4d8fee382aa74f25c24e0b19103ed0
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 Fri Feb 20 2015 - 14:48:26 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 20 2015 - 15:00:11 CET