mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 13:23:57 -07:00
Fix size of pointer instead of size of data
This commit is contained in:
parent
34131739fe
commit
c760e7e5c5
2 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ int start_ncp(int s, char *ip, int port, unsigned char options, char *miscptr, F
|
|||
}
|
||||
memset(context, 0, sizeof(context));
|
||||
strncpy(context, login, strlen(login));
|
||||
strncpy(context + strlen(login), miscptr, sizeof(miscptr) + 1);
|
||||
strncpy(context + strlen(login), miscptr, sizeof(char) + 1);
|
||||
login = context;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue