]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/hpgl-input.c
Load cups into easysw/current.
[thirdparty/cups.git] / filter / hpgl-input.c
index 8668d8e7443200d48a8cad95f5eee225e3d573f9..54c99917fad7835de5b28f9a02f5479c02ddcf48 100644 (file)
@@ -1,25 +1,16 @@
 /*
- * "$Id: hpgl-input.c 6420 2007-03-30 20:00:59Z mike $"
+ * "$Id: hpgl-input.c 6649 2007-07-11 21:46:42Z mike $"
  *
  *   HP-GL/2 input processing for the Common UNIX Printing System (CUPS).
  *
+ *   Copyright 2007 by Apple Inc.
  *   Copyright 1993-2006 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
- *   property of Easy Software Products and are protected by Federal
- *   copyright law.  Distribution and use rights are outlined in the file
- *   "LICENSE.txt" which should have been included with this file.  If this
- *   file is missing or damaged please contact Easy Software Products
- *   at:
- *
- *       Attn: CUPS Licensing Information
- *       Easy Software Products
- *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636 USA
- *
- *       Voice: (301) 373-9600
- *       EMail: cups-info@cups.org
- *         WWW: http://www.cups.org
+ *   property of Apple Inc. and are protected by Federal copyright
+ *   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
+ *   which should have been included with this file.  If this file is
+ *   file is missing or damaged, see the license at "http://www.cups.org/".
  *
  *   This file is subject to the Apple OS-Developed Software exception.
  *
@@ -183,7 +174,9 @@ ParseCommand(FILE    *fp,   /* I - File to read from */
   {
     bufptr = buf;
     while ((ch = getc(fp)) != ';')
-      if (bufptr < (buf + sizeof(buf) - 1))
+      if (ch == EOF)
+        break;
+      else if (bufptr < (buf + sizeof(buf) - 1))
         *bufptr++ = ch;
     *bufptr = '\0';
 
@@ -195,6 +188,10 @@ ParseCommand(FILE    *fp,  /* I - File to read from */
   while (!done)
     switch (ch = getc(fp))
     {
+      case EOF :
+          done = 1;
+          break;
+
       case ',' :
       case ' ' :
       case '\n' :
@@ -270,5 +267,5 @@ FreeParameters(int     num_params,  /* I - Number of parameters */
 
 
 /*
- * End of "$Id: hpgl-input.c 6420 2007-03-30 20:00:59Z mike $".
+ * End of "$Id: hpgl-input.c 6649 2007-07-11 21:46:42Z mike $".
  */