]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
added helper Is{Col,Row}Shown()
[wxWidgets.git] / src / common / datetime.cpp
index 834680691349d77a2df65fab9e94d50e7cbfeadb..80d8fd579166b08989799c7764add2423240f5f9 100644 (file)
@@ -381,7 +381,8 @@ extern const char *wxDumpDate(const wxDateTime* dt)
     static char buf[128];
 
     wxString fmt(dt->Format("%Y-%m-%d (%a) %H:%M:%S"));
-    wxStrncpy(buf, fmt + " (" + dt->GetValue().ToString() + " ticks)",
+    wxStrlcpy(buf,
+              (fmt + " (" + dt->GetValue().ToString() + " ticks)").ToAscii(),
               WXSIZEOF(buf));
 
     return buf;