gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r9841 - Extractor/src/plugins


From: gnunet
Subject: [GNUnet-SVN] r9841 - Extractor/src/plugins
Date: Mon, 21 Dec 2009 12:45:44 +0100

Author: grothoff
Date: 2009-12-21 12:45:44 +0100 (Mon, 21 Dec 2009)
New Revision: 9841

Modified:
   Extractor/src/plugins/ps_extractor.c
Log:
fixing CID 199

Modified: Extractor/src/plugins/ps_extractor.c
===================================================================
--- Extractor/src/plugins/ps_extractor.c        2009-12-21 11:43:28 UTC (rev 
9840)
+++ Extractor/src/plugins/ps_extractor.c        2009-12-21 11:45:44 UTC (rev 
9841)
@@ -151,7 +151,8 @@
      "%%EndComments", this should allow us to not read through most of
      the file for all the sane applications... For Windows-generated
      PS files, we will bail out at the end of the file. */
-  while (0 != strncmp ("%%EndComments", line, strlen ("%%EndComments")))
+  while ( (line == NULL) ||
+         (0 != strncmp ("%%EndComments", line, strlen ("%%EndComments"))) )
     {
       free (line);
       line = readline (data, size, pos);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]