mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Fixed memory overflow bug in path_real_rec()
This commit is contained in:
parent
1f341f8b4c
commit
2738177fff
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ char *path_real_rec(char *cur, int *links) {
|
|||
int i, j, n, tmpl, lnkl = 0;
|
||||
char **arr, *tmp, *lnk, *ret = NULL;
|
||||
|
||||
tmpl = strlen(cur);
|
||||
tmpl = strlen(cur)+1;
|
||||
tmp = malloc(tmpl);
|
||||
|
||||
/* split path */
|
||||
|
|
|
|||
Loading…
Reference in a new issue