]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/utils.cpp
fix the definition of many static functions marked as 'const' or functions which...
[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);