]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cgi-bin/search.c
Load cups into easysw/current.
[thirdparty/cups.git] / cgi-bin / search.c
index 4f1ea072af139236f66d2eecb8d88e015358bc62..205a40cff9b9e2cea83de9959d900011f4ae77b6 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: search.c 4859 2005-11-30 23:45:24Z mike $"
+ * "$Id: search.c 5963 2006-09-17 19:01:47Z mike $"
  *
  *   Search routines for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2005 by Easy Software Products.
+ *   Copyright 1997-2006 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
@@ -225,6 +225,8 @@ cgiCompileSearch(const char *query) /* I - Query string */
        *sptr++ = *qptr++;
       }
 
+      *sptr = '\0';
+
      /*
       * For "word1 AND word2", add reciprocal "word2 AND word1"...
       */
@@ -364,5 +366,5 @@ cgiFreeSearch(void *search)         /* I - Search context */
 
 
 /*
- * End of "$Id: search.c 4859 2005-11-30 23:45:24Z mike $".
+ * End of "$Id: search.c 5963 2006-09-17 19:01:47Z mike $".
  */