]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
rename wxHeaderCtrl DRAG events into RESIZE ones as we're also going to have column...
[wxWidgets.git] / src / common / utilscmn.cpp
index deffb94e27633207c11f89d91cb71cb9979f131d..43826ac40f3c51375ed4de09649459cef5e9b187 100644 (file)
@@ -436,8 +436,7 @@ bool wxGetEmailAddress(wxChar *address, int maxSize)
     if ( !email )
         return false;
 
-    wxStrncpy(address, email, maxSize - 1);
-    address[maxSize - 1] = wxT('\0');
+    wxStrlcpy(address, email.t_str(), maxSize);
 
     return true;
 }