]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/utils.cpp
don't use wxVector<wxDataFormat> from wx/clipbrd.h as wxDataFormat definition is...
[wxWidgets.git] / src / palmos / utils.cpp
index 66df86593625a8d752fe90efb21142e54ab0ddae..a03694b0dc755599a27d0470cc31ff6f921c48d3 100644 (file)
@@ -97,7 +97,7 @@ bool wxGetUserName(wxChar *buf, int maxSize)
         return false;
     }
 
-    wxStrncpy (buf, wxSafeConvertMB2WX(id), maxSize - 1);
+    wxStrlcpy(buf, wxSafeConvertMB2WX(id), maxSize);
 
     // free the buffer
     MemPtrUnlock(id);