Changed unnecessary strncpy to strcpy.

This commit is contained in:
Markus Makela
2015-11-02 11:26:59 +02:00
parent 3903c4a35d
commit a969de7d50

View File

@ -139,7 +139,7 @@ bool change_current_db(char* dest,
} }
else else
{ {
strncpy(dest,db,MYSQL_DATABASE_MAXLEN); strcpy(dest,db);
skygw_log_write(LOGFILE_TRACE,"change_current_db: database is on server: '%s'.",target); skygw_log_write(LOGFILE_TRACE,"change_current_db: database is on server: '%s'.",target);
succp = true; succp = true;
goto retblock; goto retblock;