diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-02 19:29:08 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-02 19:46:17 +0100 |
commit | 0cf1ced116843d5faba6326b23b5925a9d64c267 (patch) | |
tree | 080b31ebc30094a6f2f89846e8e78be4b4d43f61 | |
parent | f7d33f95bf975246a1032392d207913d68897d16 (diff) |
reduce stack usage of uh_file_dirlist
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |