/[gnats]/gnats/gnats/misc.c
ViewVC logotype

Diff of /gnats/gnats/misc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37 by yngves, Mon Oct 14 22:50:11 2002 UTC revision 1.38 by yngves, Mon Nov 25 13:58:33 2002 UTC
# Line 272  get_next_field (const char **line_ptr, i Line 272  get_next_field (const char **line_ptr, i
272    next_token = end_line;    next_token = end_line;
273    
274    /* skip whitespace at the end of the token */    /* skip whitespace at the end of the token */
275    while (end_line > line && isspace ((int) end_line[-1]))    while (end_line > line && isspace ((int)(unsigned char) end_line[-1]))
276      {      {
277        end_line--;        end_line--;
278      }      }
# Line 647  value_is_empty (const char *string) Line 647  value_is_empty (const char *string)
647    {    {
648      unsigned int i;      unsigned int i;
649      for (i = 0; i < strlen (string); i++)      for (i = 0; i < strlen (string); i++)
650        if (! isspace ((int)(string[i])))        if (! isspace ((int)(unsigned char)(string[i])))
651          return FALSE;          return FALSE;
652      return TRUE;      return TRUE;
653    }    }

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26