Fix fault on with %t, bug1443.

This commit is contained in:
Wilson Snyder
2019-05-16 19:35:10 -04:00
parent 26436cf4dd
commit 13ecb8e177
7 changed files with 78 additions and 10 deletions
+3 -2
View File
@@ -582,8 +582,9 @@ string V3Number::displayed(FileLine*fl, const string& vformat) const {
}
case 'e':
case 'f':
case 'g': {
char tmp[MAX_SPRINTF_DOUBLE_SIZE];
case 'g':
case '^': { // Realtime
char tmp[MAX_SPRINTF_DOUBLE_SIZE];
sprintf(tmp, vformat.c_str(), toDouble());
return tmp;
}