diff options
author | Alex Converse | 2011-05-03 11:19:31 -0700 |
---|---|---|
committer | Alex Converse | 2011-05-03 21:20:13 -0700 |
commit | 1a5e4fd8c5b99478b4e08a69261930bb12aa948b (patch) | |
tree | 305d316548f3f399606e2659ee0fec7e2a13ae59 /ffmpeg.c | |
parent | aab6374bbe2b6ce4ca82141be6a5b7b8875bf051 (diff) |
Replace strncpy() with av_strlcpy().
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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, |