diff options
author | wm4 <wm4@nowhere> | 2015-09-13 22:49:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-13 22:49:04 +0200 |
commit | b4c3e218f52a041340631e2d3e686ea8d9cc4da3 (patch) | |
tree | 64b7ce4f4f05ddc7e650ed3938cdb423f899a13b | |
parent | 4cd05007335dddb7805acac90eae76ad0dcbed34 (diff) | |
download | libass-b4c3e218f52a041340631e2d3e686ea8d9cc4da3.tar.bz2 libass-b4c3e218f52a041340631e2d3e686ea8d9cc4da3.tar.xz |
ass_fontselect: do not use PATH_MAX
This seems to cause issues on MSVC. Considering that even most Unix OSes
hate PATH_MAX and don't really honour it, using 4096 is just as good.
-rw-r--r-- | libass/ass_fontselect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_fontselect.c b/libass/ass_fontselect.c index 2a2ec51..e75eb1f 100644 --- a/libass/ass_fontselect.c +++ b/libass/ass_fontselect.c @@ -166,7 +166,7 @@ static void load_fonts_from_dir(ASS_Library *library, const char *dir) break; if (entry->d_name[0] == '.') continue; - char fullname[PATH_MAX]; + char fullname[4096]; snprintf(fullname, sizeof(fullname), "%s/%s", dir, entry->d_name); size_t bufsize = 0; ass_msg(library, MSGL_WARN, "Loading font file '%s'", fullname); |