Changes to gnats/gnats/query.c

Yngve Svendsen <[email protected]> Mon, 25 Nov 2002 08:58:43 -0500
Newsgroups gmane.comp.bug-tracking.gnats.patches
Message-ID <[email protected]>
Index: gnats/gnats/query.c
diff -c gnats/gnats/query.c:1.56 gnats/gnats/query.c:1.57
*** gnats/gnats/query.c:1.56	Sun Feb 10 13:24:02 2002
--- gnats/gnats/query.c	Mon Nov 25 08:58:33 2002
***************
*** 152,158 ****
    QueryFormat *res;
    FieldList currEnt = NULL;
  
!   while (expr[0] != '\0' && isspace ((int) expr[0]))
      {
        expr++;
      }
--- 152,158 ----
    QueryFormat *res;
    FieldList currEnt = NULL;
  
!   while (expr[0] != '\0' && isspace ((int)(unsigned char) expr[0]))
      {
        expr++;
      }
***************
*** 192,203 ****
        const char *nstart = expr;
        FieldList newEnt;
  
!       if (isspace ((int) expr[0]))
  	{
  	  expr++;
  	  continue;
  	}
!       while ((! isspace ((int) expr[0])) && expr[0] != '\0')
  	{
  	  expr++;
  	}
--- 192,203 ----
        const char *nstart = expr;
        FieldList newEnt;
  
!       if (isspace ((int)(unsigned char) expr[0]))
  	{
  	  expr++;
  	  continue;
  	}
!       while ((! isspace ((int)(unsigned char) expr[0])) && expr[0] != '\0')
  	{
  	  expr++;
  	}
***************
*** 1615,1625 ****
  static void
  stripWhiteSpace (const char **expr, const char **expend)
  {
!   while (expr <= expend && isspace ((int) **expr))
      {
        (*expr)++;
      }
!   while (expr <= expend && isspace ((int) **expend))
      {
        (*expend)--;
      }
--- 1615,1625 ----
  static void
  stripWhiteSpace (const char **expr, const char **expend)
  {
!   while (expr <= expend && isspace ((int)(unsigned char) **expr))
      {
        (*expr)++;
      }
!   while (expr <= expend && isspace ((int)(unsigned char) **expend))
      {
        (*expend)--;
      }