X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f081f02ead106131223cb8078713dbc7844e885..80020b62f98133fc6e81c13e16a18cde11effab8:/src/generic/prop.cpp?ds=sidebyside diff --git a/src/generic/prop.cpp b/src/generic/prop.cpp index cca2ecdd45..ae8170a5ab 100644 --- a/src/generic/prop.cpp +++ b/src/generic/prop.cpp @@ -1141,13 +1141,13 @@ bool wxPropertyValidator::StringToLong (wxChar *s, long *number) { wxChar *wxPropertyValidator::FloatToString (float number) { static wxChar buf[20]; - wxSprintf (buf, wxT("%.6g"), number); + wxSnprintf (buf, 20, wxT("%.6g"), number); return buf; } wxChar *wxPropertyValidator::DoubleToString (double number) { static wxChar buf[20]; - wxSprintf (buf, wxT("%.6g"), number); + wxSnprintf (buf, 20, wxT("%.6g"), number); return buf; }