[MPlayer-cvslog] r20181 - trunk/libmpdemux/demux_mkv.c

reimar subversion at mplayerhq.hu
Thu Oct 12 19:19:44 CEST 2006


Author: reimar
Date: Thu Oct 12 19:19:43 2006
New Revision: 20181

Modified:
   trunk/libmpdemux/demux_mkv.c

Log:
strncpy->strlcpy


Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c	(original)
+++ trunk/libmpdemux/demux_mkv.c	Thu Oct 12 19:19:43 2006
@@ -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.



More information about the MPlayer-cvslog mailing list