blob: 337c03100cf0232dc14fbc4671778ba16bd8d3ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ad,v 1.1 2004/12/18 19:05:54 minskim Exp $
--- getline.c.orig 2004-11-09 14:16:42.000000000 -0600
+++ getline.c
@@ -197,7 +197,7 @@ getline(INPUT_STREAM fp, char *buf)
(*linenum)++; /* keep track of current line */
/* lose trailing spaces */
- for (i++; i && isspace(buf[i - 1]); i--)
+ for (i++; i && isspace((unsigned char)buf[i - 1]); i--)
buf[i - 1] = 0;
if (i)
|