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

@@ -703,8 +703,8 @@ static void * ld_load_func (void *arg) {
// public loading function
void loader_load(loader_result *result, view *sub_view, app_entry *entry) {
char caption[MAXPATHLEN + 32];
char filename[MAXPATHLEN];
char caption[PATH_MAX + 32];
char filename[PATH_MAX];
ld_load_arg ta;
s32 res;