]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/prop.cpp
Using wxImageListType instead of wxGenericImageList
[wxWidgets.git] / src / generic / prop.cpp
index cca2ecdd45191a1cea1297ca05a2a5e5ec51e5e5..ae8170a5abce62ce951c867304ae54bbfe20c48b 100644 (file)
@@ -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;
 }