Fixed memory overflow bug in path_real_rec()

This commit is contained in:
Yorhel 2009-04-25 14:26:52 +02:00
parent 1f341f8b4c
commit 2738177fff

View file

@ -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 */