]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tarstrm.cpp
Reorganize wxCollapsiblePane event and layout code under GTK+
[wxWidgets.git] / src / common / tarstrm.cpp
index b763de5a2e1d7796fbd8effb52b7ab21fc97f8e8..7eb827582e3f499dcd1d4b7ca6d3bedf4f0cde5d 100644 (file)
@@ -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;