blob: 3db3df34b26db7fbf3bd1395b62b073852b969fc [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001--- a/src/input/subtitles.c
2+++ b/src/input/subtitles.c
3@@ -42,6 +42,12 @@
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004 #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 Bishop19323692019-04-05 15:28:33 -040013 * The possible extensions for subtitle files we support
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014 */
Brad Bishop19323692019-04-05 15:28:33 -040015 static const char *const sub_exts[] = { SLAVE_SPU_EXTENSIONS, "" };