summaryrefslogtreecommitdiff
path: root/direntry.c
diff options
context:
space:
mode:
Diffstat (limited to 'direntry.c')
-rw-r--r--direntry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/direntry.c b/direntry.c
index 8eec781..4723b33 100644
--- a/direntry.c
+++ b/direntry.c
@@ -145,7 +145,7 @@ char *getPwd(direntry_t *entry)
char *end;
size = getPathLen(entry);
- ret = malloc(size+1);
+ ret = malloc(size*4+1);
if(!ret)
return 0;
end = sprintPwd(entry, ret);