Commit 50a294d0 authored by Andrea Zoli's avatar Andrea Zoli
Browse files

Fix sprintf buffer overflow bug.

parent 578921c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -372,7 +372,7 @@ char* Utility::integerToString2(int n, char* str)

char* Utility::integerToString3(char* str, int n)
{
    char* c = new char[1];
    char* c = new char[250];
    sprintf(c, (char*) str, n);
    return c;
}