client: Cleanup some dangerous function usage in boinclog.

This commit is contained in:
Rom Walton 2016-02-14 20:29:03 -05:00
parent 510c1860d7
commit b69d29d2dc
1 changed files with 5 additions and 5 deletions

View File

@ -121,11 +121,11 @@ int main(int argc, char** argv) {
std::string msg_body;
std::string msg_tmp;
strcpy(buf, "");
strcpy(datadir, "");
strcpy(hostname_buf, "");
strcpy(passwd_buf, "");
strcpy(g_log_filename, "");
strlcpy(buf, "", sizeof(buf));
strlcpy(datadir, "", sizeof(datadir));
strlcpy(hostname_buf, "", sizeof(hostname_buf));
strlcpy(passwd_buf, "", sizeof(passwd_buf));
strlcpy(g_log_filename, "", sizeof(g_log_filename));
g_message_sequence = 0;
#if defined(_WIN32) && defined(USE_WINSOCK)