summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-02 19:29:08 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-02 19:46:17 +0100
commit0cf1ced116843d5faba6326b23b5925a9d64c267 (patch)
tree080b31ebc30094a6f2f89846e8e78be4b4d43f61
parentf7d33f95bf975246a1032392d207913d68897d16 (diff)
reduce stack usage of uh_file_dirlist
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 367ab3e..8ccb06b 100644
--- a/file.c
+++ b/file.c
@@ -446,7 +446,7 @@ static void uh_file_dirlist(struct client *cl, struct path_info *pi)
{
int i;
int count = 0;
- char filename[PATH_MAX];
+ char *filename = uh_buf;
char *pathptr;
struct dirent **files = NULL;
struct stat s;