buffer overrun fix
This commit is contained in:
parent
ead1817e11
commit
7b2c9cd774
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ int main(int argc, char **argv) {
|
|||
d->version = malloc(sizeof(uint32_t) * d->version_size);
|
||||
|
||||
prefix_len = strlen(argv[7]);
|
||||
tempfn = (char *) malloc(prefix_len + 16);
|
||||
tempfn = (char *) malloc(prefix_len + 32);
|
||||
strcpy(tempfn, argv[7]);
|
||||
|
||||
strcpy(tempfn + prefix_len, "current_nodes");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue