Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | Index: vlc-2.1.2/src/input/subtitles.c |
| 2 | =================================================================== |
| 3 | --- vlc-2.1.2.orig/src/input/subtitles.c |
| 4 | +++ vlc-2.1.2/src/input/subtitles.c |
| 5 | @@ -44,6 +44,12 @@ |
| 6 | #include "input_internal.h" |
| 7 | |
| 8 | /** |
| 9 | + * Drepper's alternative |
| 10 | + * http://en.wikibooks.org/wiki/C_Programming/C_Reference/nonstandard/strlcpy |
| 11 | + */ |
| 12 | +#define strlcpy(dst, src, n) *((char* ) mempcpy(dst, src, n)) = '\0' |
| 13 | + |
| 14 | +/** |
| 15 | * We are not going to autodetect more subtitle files than this. |
| 16 | */ |
| 17 | #define MAX_SUBTITLE_FILES 128 |