use PATH_MAX instead of MAXPATHLEN

This commit is contained in:
Hector Martin
2017-07-29 19:32:45 +09:00
parent 4ad9428dfa
commit 20e887db90
5 changed files with 11 additions and 10 deletions

View File

@@ -166,7 +166,7 @@ void app_entry_set_sort(app_sort sort) {
static app_entry *app_entry_load_single (const char *dirname) {
app_entry *entry;
app_entry_type type;
char tmp[MAXPATHLEN + 32];
char tmp[PATH_MAX + 32];
struct stat st;
type = AET_BOOT_ELF;