Sha256: 1846f6f74bedd8135ab558f97eadc06feb484911fb0578c5eb4d42c756f8db0e
Contents?: true
Size: 489 Bytes
Versions: 10
Compression:
Stored size: 489 Bytes
Contents
diff --git a/src/FXString.cpp b/src/FXString.cpp index fe1120a..b1112dc 100644 --- a/src/FXString.cpp +++ b/src/FXString.cpp @@ -2365,7 +2365,7 @@ FXString& FXString::vformat(const FXchar* fmt,va_list args){ #else va_list ag; x: va_copy(ag,args); - result=vsnprintf(str,length()+1,fmt,ag); + result=vsnprintf(str,empty() ? 0 : length()+1,fmt,ag); va_end(ag); if(result<0){ length(FXMAX(64,length()*2)); goto x; } if(length()<result){ length(result); goto x; }
Version data entries
10 entries across 10 versions & 1 rubygems