Browse Source

Fix a compiler warning

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC2
falkTX 5 years ago
parent
commit
efa15219c8
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      source/modules/water/text/String.cpp

+ 2
- 0
source/modules/water/text/String.cpp View File

@@ -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();


Loading…
Cancel
Save