Changes to gnats/gnats/misc.c

Yngve Svendsen <[email protected]> Mon, 25 Nov 2002 08:58:42 -0500
Newsgroups gmane.comp.bug-tracking.gnats.patches
Message-ID <[email protected]>
Index: gnats/gnats/misc.c
diff -c gnats/gnats/misc.c:1.37 gnats/gnats/misc.c:1.38
*** gnats/gnats/misc.c:1.37	Mon Oct 14 18:50:11 2002
--- gnats/gnats/misc.c	Mon Nov 25 08:58:33 2002
***************
*** 272,278 ****
    next_token = end_line;
  
    /* skip whitespace at the end of the token */
!   while (end_line > line && isspace ((int) end_line[-1]))
      {
        end_line--;
      }
--- 272,278 ----
    next_token = end_line;
  
    /* skip whitespace at the end of the token */
!   while (end_line > line && isspace ((int)(unsigned char) end_line[-1]))
      {
        end_line--;
      }
***************
*** 647,653 ****
    {
      unsigned int i;
      for (i = 0; i < strlen (string); i++)
!       if (! isspace ((int)(string[i])))
  	return FALSE;
      return TRUE;
    }
--- 647,653 ----
    {
      unsigned int i;
      for (i = 0; i < strlen (string); i++)
!       if (! isspace ((int)(unsigned char)(string[i])))
  	return FALSE;
      return TRUE;
    }