Skip to content
Snippets Groups Projects
Commit 2738177f authored by Yorhel's avatar Yorhel
Browse files

Fixed memory overflow bug in path_real_rec()

parent 1f341f8b
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment