]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Fix fxAssert that was around the wrong way.
authorRobert Colquhoun <rjc@trump.net.au>
Thu, 21 Sep 2000 23:59:06 +0000 (23:59 +0000)
committerRobert Colquhoun <rjc@trump.net.au>
Thu, 21 Sep 2000 23:59:06 +0000 (23:59 +0000)
util/Str.c++

index 9a064e917b5d9e13d180b1b6ce8570e7cbbc0729..51e2b85938a547925037858bc338f0c6e700afcd 100644 (file)
@@ -178,7 +178,7 @@ fxStr::vformat(const char* fmt, va_list ap)
     fxStr s;
     s.data = (char*)malloc(size);
     int len = vsnprintf(s.data, size, fmt, ap);
-    fxAssert(len < 0 || len >= size, "Str:vformat() Have truncated string.");
+    fxAssert(len >= 0 && len < size, "Str:vformat() Have truncated string.");
     if (size > len + 1) {
         s.data = (char*) realloc(s.data, len + 1);
     }