match new[] operator with delete[] operator

The string ends up being deleted with the [] variant later on.

CID 602975.
This commit is contained in:
Philippe Saint-Pierre
2015-07-01 20:34:57 -04:00
parent 93bd491fb7
commit ee056a089c
+1 -1
View File
@@ -1168,7 +1168,7 @@ format_data(int32 type, char *ptr, long size)
char *tempstr;
if (size <= 0L) {
str = new char;
str = new char[1];
*str = 0;
return str;
}