# HG changeset patch # User Bruno Haible # Date 1208309206 -7200 # Node ID 01ca1a0b2ebea946f48cd97d244b118bdb87ba74 # Parent 810b08d769f88855125080e3571840719b6533f0 Fix use of isspace() function. diff -r 810b08d769f8 -r 01ca1a0b2ebe ChangeLog --- a/ChangeLog Tue Apr 15 15:25:38 2008 +0200 +++ b/ChangeLog Wed Apr 16 03:26:46 2008 +0200 @@ -1,3 +1,7 @@ +2008-04-15 Bruno Haible + + * lib/trim.c (trim2): Fix argument of isspace() macro. + 2008-04-15 Paolo Bonzini * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it diff -r 810b08d769f8 -r 01ca1a0b2ebe lib/trim.c --- a/lib/trim.c Tue Apr 15 15:25:38 2008 +0200 +++ b/lib/trim.c Wed Apr 16 03:26:46 2008 +0200 @@ -113,7 +113,7 @@ /* Trim leading whitespaces. */ if (how != TRIM_TRAILING) { - for (p = d; *p && isspace (*p); p++) + for (p = d; *p && isspace ((unsigned char) *p); p++) ; memmove (d, p, strlen (p) + 1); @@ -121,7 +121,7 @@ /* Trim trailing whitespaces. */ if (how != TRIM_LEADING) { - for (p = d + strlen (d) - 1; p >= d && isspace (*p); p--) + for (p = d + strlen (d) - 1; p >= d && isspace ((unsigned char) *p); p--) *p = '\0'; } }