]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Issue 686: Correctly retry if the buffer needs to be grown
authorTim Kientzle <kientzle@gmail.com>
Thu, 28 Apr 2016 05:48:20 +0000 (22:48 -0700)
committerTim Kientzle <kientzle@gmail.com>
Thu, 28 Apr 2016 05:48:20 +0000 (22:48 -0700)
libarchive/archive_string.c

index 3d4be82592661c7e6d218c78380ee7346adc0f6a..282c58e1eb9f05dd4821ea2377775105d2a2690a 100644 (file)
@@ -737,7 +737,8 @@ archive_string_append_from_wcs_in_codepage(struct archive_string *as,
                        }
                        if (count == 0)
                                ret = -1;
-               } while (0);
+                       break;
+               } while (1);
        }
        as->length += count;
        as->s[as->length] = '\0';