mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 12:36:09 -07:00
pre-8.0 fixes
This commit is contained in:
parent
76c6145106
commit
ebbd664e07
18 changed files with 199 additions and 129 deletions
|
@ -29,10 +29,10 @@ int start_postgres(int s, char *ip, int port, unsigned char options, char *miscp
|
|||
PGconn *pgconn;
|
||||
|
||||
if (miscptr)
|
||||
strncpy(database, miscptr, sizeof(database));
|
||||
strncpy(database, miscptr, sizeof(database) - 1);
|
||||
else
|
||||
strncpy(database, DEFAULT_DB, sizeof(database));
|
||||
database[sizeof(database)] = 0;
|
||||
strncpy(database, DEFAULT_DB, sizeof(database) - 1);
|
||||
database[sizeof(database) - 1] = 0;
|
||||
|
||||
if (strlen(login = hydra_get_next_login()) == 0)
|
||||
login = empty;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue