[vlc-commits] posix: use explicit indexing to mute warning
Rémi Denis-Courmont
git at videolan.org
Sun Jul 14 11:29:47 CEST 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 14 12:04:24 2019 +0300| [33b4d41ec7766c047227866df58877c9338c341a] | committer: Rémi Denis-Courmont
posix: use explicit indexing to mute warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=33b4d41ec7766c047227866df58877c9338c341a
---
src/posix/dirs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/posix/dirs.c b/src/posix/dirs.c
index 2fccd229d5..d6acdb47dc 100644
--- a/src/posix/dirs.c
+++ b/src/posix/dirs.c
@@ -97,7 +97,7 @@ char *config_GetSysPath(vlc_sysdir_t type, const char *filename)
size_t libdir_len = strlen(libdir);
if (suffix_len > libdir_len
- || memcmp(LIBDIR + prefix_len, libdir + (libdir_len - suffix_len),
+ || memcmp(&LIBDIR[prefix_len], libdir + (libdir_len - suffix_len),
suffix_len)) {
suffix_len = libdir_len;
prefix_len = 0;
More information about the vlc-commits
mailing list