8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:43:03 +01:00

Fixed gstat crach reported by Phil Shrimpton.

This commit is contained in:
dimitr 2003-09-03 07:39:03 +00:00
parent 14d45e552d
commit 58e25b9e8f

View File

@ -409,10 +409,12 @@ int CLIB_ROUTINE main(int argc, char **argv)
dba_error(1, 0, 0, 0, 0, 0); /* msg 1: found unknown switch */
}
else if (in_sw_tab->in_sw == IN_SW_DBA_USERNAME) {
strcpy((char*) username, *argv++);
if (argv < end)
strcpy((char*) username, *argv++);
}
else if (in_sw_tab->in_sw == IN_SW_DBA_PASSWORD) {
strcpy((char*) password, *argv++);
if (argv < end)
strcpy((char*) password, *argv++);
}
else if (in_sw_tab->in_sw == IN_SW_DBA_SYSTEM) {
sw_system = true;