mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-14 18:48:17 -07:00
fixes
This commit is contained in:
parent
7a4fa7b51e
commit
d5827c4182
3 changed files with 10 additions and 9 deletions
|
@ -64,8 +64,10 @@ int start_ncp(int s, char *ip, int port, unsigned char options, char *miscptr, F
|
|||
return 4;
|
||||
}
|
||||
memset(context, 0, sizeof(context));
|
||||
strncpy(context, login, strlen(login));
|
||||
strncpy(context + strlen(login), miscptr, sizeof(char) + 1);
|
||||
strncpy(context, login, sizeof(context) - 2);
|
||||
context[sizeof(context) - 2] = 0;
|
||||
strncpy(context + strlen(login), miscptr, sizeof(context) - strlen(login) - 1);
|
||||
context[sizeof(context) - 1] = 0;
|
||||
login = context;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue