From efa15219c81466ed8ba44aeb8a3dcf46aea559e0 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 28 Feb 2021 10:01:06 +0000 Subject: [PATCH] Fix a compiler warning Signed-off-by: falkTX --- source/modules/water/text/String.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/modules/water/text/String.cpp b/source/modules/water/text/String.cpp index a71e54be5..9ee179616 100644 --- a/source/modules/water/text/String.cpp +++ b/source/modules/water/text/String.cpp @@ -1786,6 +1786,8 @@ String String::formatted (const String pf, ... ) if (num == 0 || bufferSize > 65536) // the upper limit is a sanity check to avoid situations where vsnprintf repeatedly break; // returns -1 because of an error rather than because it needs more space. + + temp.realloc (bufferSize); } return String();