vlc | branch: master | Thomas Guillem <[email protected]> | Tue May 3 09:32:08 2016 +0200| [9635f7466e550ae7a694e69ee82e5b03ca1438e0] | committer: Thomas Guillem
skins: fix WIN32 build Maybe we should add a vlc_get_pathmax. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9635f7466e550ae7a694e69ee82e5b03ca1438e0 --- modules/gui/skins2/src/theme_loader.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/gui/skins2/src/theme_loader.cpp b/modules/gui/skins2/src/theme_loader.cpp index b4cf7e8..31f1c55 100644 --- a/modules/gui/skins2/src/theme_loader.cpp +++ b/modules/gui/skins2/src/theme_loader.cpp @@ -549,7 +549,11 @@ int tar_extract_all( TAR *t, char *prefix ) union tar_buffer buffer; int len, err, getheader = 1, remaining = 0; FILE *outfile = NULL; +#if defined( _WIN32 ) + long path_max = PATH_MAX; +#else long path_max = pathconf (".", _PC_PATH_MAX); +#endif size_t maxsize = (path_max == -1 || path_max > 4096) ? 4096 : path_max; char fname[BLOCKSIZE + maxsize]; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
