changeset 20175:4b4acfeaa610

strncpy->strlcpy
author reimar
date Thu, 12 Oct 2006 17:19:43 +0000
parents 6f346bb9ede7
children 31d504bf45f4
files libmpdemux/demux_mkv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c	Thu Oct 12 17:19:10 2006 +0000
+++ b/libmpdemux/demux_mkv.c	Thu Oct 12 17:19:43 2006 +0000
@@ -3938,7 +3938,7 @@
   mkv_track_t *track = demux_mkv_find_track_by_num (mkv_d, track_num, MATROSKA_TRACK_SUBTITLE);
           if ((track->language != NULL) &&
               strcmp(track->language, "und"))
-            strncpy(lang, track->language, maxlen);
+            strlcpy(lang, track->language, maxlen);
 }
 
 /** \brief Get the language code for an audio track.