Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
5fe2c1c3 by Alexandre Janniaux at 2026-02-03T10:03:49+00:00
posix: dirs: fix libexec
VLC_PKG_LIBEXEC_DIR is truncated, leading to failure to find binaries
from LIBEXEC, and thus Qt interface not starting.
[255/2305] Compiling C object src/libvlccore.so.9.0.0.p/posix_dirs.c.o
../src/posix/dirs.c: In function ‘config_GetSysPath’:
../src/posix/dirs.c:53:33: warning: initializer-string for array of
‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (17
chars into 16 available) [-Wunterminated-string-initialization]
53 | [VLC_PKG_LIBEXEC_DIR] = "VLC_LIBEXEC_PATH",
| ^~~~~~~~~~~~~~~~~~
Co-authored-by: Fatih Uzunoglu <[email protected]>
Fatih found the root cause and reported it after Gabriel signalled he
couldn't launch the UI anymore.
Regression from e23555302f928e3ad750e2c8c8960ccf9ecffd58.
- - - - -
1 changed file:
- src/posix/dirs.c
Changes:
=====================================
src/posix/dirs.c
=====================================
@@ -47,7 +47,7 @@ VLC_WEAK char *config_GetLibDir(void)
char *config_GetSysPath(vlc_sysdir_t type, const char *filename)
{
- static const char env_vars[][16] = {
+ static const char env_vars[][17] = {
[VLC_PKG_DATA_DIR] = "VLC_DATA_PATH",
[VLC_PKG_LIB_DIR] = "VLC_LIB_PATH",
[VLC_PKG_LIBEXEC_DIR] = "VLC_LIBEXEC_PATH",
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/5fe2c1c37ad989127f95d0404a62bdbe1babc92d
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/5fe2c1c37ad989127f95d0404a62bdbe1babc92d
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits