From b2be26320602b692b1a658ada027fa447341b278 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Fri, 1 May 2015 06:36:50 +0000 Subject: [PATCH] #922 Fixing Image::formatString() on Windows --- src/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image.cpp b/src/image.cpp index 644573b4..ca242784 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -365,7 +365,7 @@ namespace Exiv2 { int again = 4; int rc = -1; - if (rc < 0 && again--) { + while (rc < 0 && again--) { if ( buffer ) delete[] buffer; need *= 2 ; buffer = new char[need];