diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-05 22:01:07 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-05 22:01:07 +0000 |
commit | 4c4a1070febe5a140cac0357267af338b9852a7e (patch) | |
tree | d7ed87a85da0733f33ea47c25797f58c25e5e9fc /stream/stream_cue.c | |
parent | b3d59ea908ce87b3dc50bb9ba0ac81edd4765797 (diff) | |
download | mpv-4c4a1070febe5a140cac0357267af338b9852a7e.tar.bz2 mpv-4c4a1070febe5a140cac0357267af338b9852a7e.tar.xz |
Avoid code duplication and ugly config.h hack by using av_strlcat/av_strlcpy
instead of plain strlcat/strlcpy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23723 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_cue.c')
-rw-r--r-- | stream/stream_cue.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stream/stream_cue.c b/stream/stream_cue.c index ef2c8f71a2..0790de7b23 100644 --- a/stream/stream_cue.c +++ b/stream/stream_cue.c @@ -18,6 +18,7 @@ #include "help_mp.h" #include "m_option.h" #include "m_struct.h" +#include "libavutil/avstring.h" #define byte unsigned char #define SIZERAW 2352 @@ -325,15 +326,15 @@ static int cue_read_cue (char *in_cue_filename) strcpy(t, "/"); } - strlcpy(bincue_path,t,sizeof( bincue_path )); + av_strlcpy(bincue_path,t,sizeof( bincue_path )); mp_msg(MSGT_OPEN,MSGL_V,"dirname: %s, cuepath: %s\n", t, bincue_path); /* no path at all? */ if (strcmp(bincue_path, ".") == 0) { mp_msg(MSGT_OPEN,MSGL_V,"bincue_path: %s\n", bincue_path); - strlcpy(cue_filename,in_cue_filename,sizeof( cue_filename )); + av_strlcpy(cue_filename,in_cue_filename,sizeof( cue_filename )); } else { - strlcpy(cue_filename,in_cue_filename + strlen(bincue_path) + 1, + av_strlcpy(cue_filename,in_cue_filename + strlen(bincue_path) + 1, sizeof( cue_filename )); } |