if (!user)
user = _T("user");
- wxStrncpy(buf, user, n);
+ wxStrlcpy(buf, user, n);
return true;
}
if (!host)
host = _T("host");
- wxStrncpy(buf, host, n);
+ wxStrlcpy(buf, host, n);
return true;
}
argv[n] = NULL;
while (n-- > 0)
- argv[n] = wx_const_cast(wxChar*, (const char *)args[n].c_str());
+ argv[n] = const_cast<wxChar*>((const char *)args[n].c_str());
long result = wxExecute(argv, flags, process);