aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorAlex Converse <aconverse@google.com>2011-05-03 11:19:31 -0700
committerAlex Converse <alex.converse@gmail.com>2011-05-03 21:20:13 -0700
commit1a5e4fd8c5b99478b4e08a69261930bb12aa948b (patch)
tree305d316548f3f399606e2659ee0fec7e2a13ae59 /ffmpeg.c
parentaab6374bbe2b6ce4ca82141be6a5b7b8875bf051 (diff)
downloadffmpeg-1a5e4fd8c5b99478b4e08a69261930bb12aa948b.tar.gz
Replace strncpy() with av_strlcpy().
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d728f140f0..c5868110f2 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3695,8 +3695,7 @@ static int opt_streamid(const char *opt, const char *arg)
char *p;
char idx_str[16];
- strncpy(idx_str, arg, sizeof(idx_str));
- idx_str[sizeof(idx_str)-1] = '\0';
+ av_strlcpy(idx_str, arg, sizeof(idx_str));
p = strchr(idx_str, ':');
if (!p) {
fprintf(stderr,