]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tarstrm.cpp
adding all encodings on mac
[wxWidgets.git] / src / common / tarstrm.cpp
index b763de5a2e1d7796fbd8effb52b7ab21fc97f8e8..033c34cf093a688d52a79b04effb627fb884304c 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "wx/buffer.h"
 #include "wx/datetime.h"
-#include "wx/ptr_scpd.h"
+#include "wx/scopedptr.h"
 #include "wx/filename.h"
 #include "wx/thread.h"
 
@@ -945,7 +945,7 @@ bool wxTarInputStream::ReadExtendedHeader(wxTarHeaderRecords*& recs)
     size_t recPos, recSize;
     bool ok = true;
 
-    for (recPos = 0; recPos < len; recPos += recSize) {
+    for (recPos = 0; recPos < len && ok; recPos += recSize) {
         char *pRec = buf.data() + recPos;
         char *p = pRec;