Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | --- a/src/input/subtitles.c |
| 2 | +++ b/src/input/subtitles.c |
| 3 | @@ -42,6 +42,12 @@ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 4 | #include "input_internal.h" |
| 5 | |
| 6 | /** |
| 7 | + * Drepper's alternative |
| 8 | + * http://en.wikibooks.org/wiki/C_Programming/C_Reference/nonstandard/strlcpy |
| 9 | + */ |
| 10 | +#define strlcpy(dst, src, n) *((char* ) mempcpy(dst, src, n)) = '\0' |
| 11 | + |
| 12 | +/** |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 13 | * The possible extensions for subtitle files we support |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | */ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 15 | static const char *const sub_exts[] = { SLAVE_SPU_EXTENSIONS, "" }; |