[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.4/kdegraphics/kpdf/xpdf/xpdf
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2005-08-02 16:42:42
Message-ID: 1123000962.438281.24827.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 442423 by aacid:

Backport fix for bug 110034


 M  +4 -3      PDFDoc.cc  


--- branches/KDE/3.4/kdegraphics/kpdf/xpdf/xpdf/PDFDoc.cc #442422:442423
@@ -115,9 +115,9 @@
 GBool PDFDoc::setup(GString *ownerPassword, GString *userPassword) {
   str->reset();
   
-  char eof[8];
+  char eof[9];
   int pos = str->getPos();
-  str->setPos(7, -1);
+  str->setPos(8, -1);
   eof[0] = str->getChar();
   eof[1] = str->getChar();
   eof[2] = str->getChar();
@@ -125,7 +125,8 @@
   eof[4] = str->getChar();
   eof[5] = str->getChar();
   eof[6] = str->getChar();
-  eof[7] = '\0';
+  eof[7] = str->getChar();
+  eof[8] = '\0';
   if (strstr(eof, "%%EOF") == NULL)
   {
     error(-1, "Document does not have ending %%EOF");	      
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic