1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-15 19:35:49 +00:00

strncpy->strlcpy

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20181 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-10-12 17:19:43 +00:00
parent 74890695e8
commit 280c746919

View File

@ -3938,7 +3938,7 @@ demux_mkv_get_sub_lang(demuxer_t *demuxer, int track_num, char *lang,
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.