diff options
author | Måns Rullgård <mans@mansr.com> | 2007-06-24 11:27:12 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-06-24 11:27:12 +0000 |
commit | f7d78f3654f8181fb889000dfc2b9a91ca85e418 (patch) | |
tree | 2dd03806da8128c531f95b35a28cfb245e405ff0 /cmdutils.c | |
parent | 3565e10b44cc978b75a5179191bc4a3c946a2e4a (diff) | |
download | ffmpeg-f7d78f3654f8181fb889000dfc2b9a91ca85e418.tar.gz |
replace the uses of old string functions that Reimar missed
Originally committed as revision 9406 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmdutils.c b/cmdutils.c index 171574c014..1557aaac4c 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -21,6 +21,7 @@ #include "avformat.h" #include "cmdutils.h" +#include "avstring.h" #undef exit @@ -37,10 +38,10 @@ void show_help_options(const OptionDef *options, const char *msg, int mask, int printf("%s", msg); first = 0; } - pstrcpy(buf, sizeof(buf), po->name); + av_strlcpy(buf, po->name, sizeof(buf)); if (po->flags & HAS_ARG) { - pstrcat(buf, sizeof(buf), " "); - pstrcat(buf, sizeof(buf), po->argname); + av_strlcat(buf, " ", sizeof(buf)); + av_strlcat(buf, po->argname, sizeof(buf)); } printf("-%-17s %s\n", buf, po->help); } |