Fixes to Coverity defects.

This commit is contained in:
Markus Makela
2015-03-10 17:08:04 +02:00
parent e937947f01
commit fbedad84af
7 changed files with 32 additions and 24 deletions

View File

@ -798,7 +798,7 @@ getUsers(SERVICE *service, USERS *users)
if (db_grants) {
/* we have dbgrants, store them */
if(row[5]){
strcpy(dbnm,row[5]);
strncpy(dbnm,row[5],MYSQL_DATABASE_MAXLEN);
if(service->strip_db_esc) {
strip_escape_chars(dbnm);
}