Fixes to Coverity defects 83027 73421 72714 72671 72646 72642

This commit is contained in:
Markus Makela
2014-12-03 17:56:22 +02:00
parent 89c3b01925
commit 1e2027f4dc
6 changed files with 11 additions and 11 deletions

View File

@ -231,9 +231,9 @@ int set_and_get_mysql_users_wildcards(char *username, char *hostname, char *pass
service->users = mysql_users;
if (db_from != NULL)
strcpy(data->db, db_from);
strncpy(data->db, db_from,MYSQL_DATABASE_MAXLEN+1);
else
strcpy(data->db, "");
strncpy(data->db, "",MYSQL_DATABASE_MAXLEN+1);
/* freed by dcb_free(dcb) */
dcb->data = data;