Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ed Fixed another instance of isspace(char).



details:   https://anonhg.NetBSD.org/src/rev/1c230a356139
branches:  trunk
changeset: 581066:1c230a356139
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon May 23 08:01:17 2005 +0000

description:
Fixed another instance of isspace(char).

diffstat:

 bin/ed/main.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7ee0de0581ed -r 1c230a356139 bin/ed/main.c
--- a/bin/ed/main.c     Mon May 23 04:04:49 2005 +0000
+++ b/bin/ed/main.c     Mon May 23 08:01:17 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.15 2005/04/19 20:18:20 rillig Exp $ */
+/*     $NetBSD: main.c,v 1.16 2005/05/23 08:01:17 rillig Exp $ */
 
 /* main.c: This file contains the main control and user-interface routines
    for the ed line editor. */
@@ -39,7 +39,7 @@
 #if 0
 static char *rcsid = "@(#)main.c,v 1.1 1994/02/01 00:34:42 alm Exp";
 #else
-__RCSID("$NetBSD: main.c,v 1.15 2005/04/19 20:18:20 rillig Exp $");
+__RCSID("$NetBSD: main.c,v 1.16 2005/05/23 08:01:17 rillig Exp $");
 #endif
 #endif /* not lint */
 
@@ -318,7 +318,7 @@
                        if (isdigit((unsigned char)*ibufp)) {
                                STRTOL(n, ibufp);
                                addr += (c == '-' || c == '^') ? -n : n;
-                       } else if (!isspace(c))
+                       } else if (!isspace((unsigned char)c))
                                addr += (c == '-' || c == '^') ? -1 : 1;
                        break;
                case '0': case '1': case '2':



Home | Main Index | Thread Index | Old Index