summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/vlc/vlc/0002-glibc-does-not-provide-strlcpy.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-multimedia/recipes-multimedia/vlc/vlc/0002-glibc-does-not-provide-strlcpy.patch')
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/0002-glibc-does-not-provide-strlcpy.patch12
1 files changed, 5 insertions, 7 deletions
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/0002-glibc-does-not-provide-strlcpy.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/0002-glibc-does-not-provide-strlcpy.patch
index 6d2a46fb3..3db3df34b 100644
--- a/meta-multimedia/recipes-multimedia/vlc/vlc/0002-glibc-does-not-provide-strlcpy.patch
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc/0002-glibc-does-not-provide-strlcpy.patch
@@ -1,8 +1,6 @@
1Index: vlc-2.1.2/src/input/subtitles.c 1--- a/src/input/subtitles.c
2=================================================================== 2+++ b/src/input/subtitles.c
3--- vlc-2.1.2.orig/src/input/subtitles.c 3@@ -42,6 +42,12 @@
4+++ vlc-2.1.2/src/input/subtitles.c
5@@ -44,6 +44,12 @@
6 #include "input_internal.h" 4 #include "input_internal.h"
7 5
8 /** 6 /**
@@ -12,6 +10,6 @@ Index: vlc-2.1.2/src/input/subtitles.c
12+#define strlcpy(dst, src, n) *((char* ) mempcpy(dst, src, n)) = '\0' 10+#define strlcpy(dst, src, n) *((char* ) mempcpy(dst, src, n)) = '\0'
13+ 11+
14+/** 12+/**
15 * We are not going to autodetect more subtitle files than this. 13 * The possible extensions for subtitle files we support
16 */ 14 */
17 #define MAX_SUBTITLE_FILES 128 15 static const char *const sub_exts[] = { SLAVE_SPU_EXTENSIONS, "" };