mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-22 06:13:55 -07:00
为output分配内存
This commit is contained in:
parent
2638b0e519
commit
95e74a3ffe
1 changed files with 2 additions and 1 deletions
3
hydra.c
3
hydra.c
|
@ -2157,7 +2157,8 @@ int main(int argc, char *argv[]) {
|
|||
strcat(unsupported, "and ");
|
||||
strcat(unsupported, "regex support ");
|
||||
#endif
|
||||
|
||||
output = malloc(sizeof(char) * 4096);
|
||||
memset(output, 0, sizeof(char) * 4096);
|
||||
(void) setvbuf(stdout, NULL, _IONBF, 0);
|
||||
(void) setvbuf(stderr, NULL, _IONBF, 0);
|
||||
// set defaults
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue