mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-03 04:43:51 +08:00
various security fixes and precautionary checks
Originally committed as revision 3822 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -35,10 +35,10 @@ void show_help_options(const OptionDef *options, const char *msg, int mask, int
|
||||
printf("%s", msg);
|
||||
first = 0;
|
||||
}
|
||||
strcpy(buf, po->name);
|
||||
pstrcpy(buf, sizeof(buf), po->name);
|
||||
if (po->flags & HAS_ARG) {
|
||||
strcat(buf, " ");
|
||||
strcat(buf, po->argname);
|
||||
pstrcat(buf, sizeof(buf), " ");
|
||||
pstrcat(buf, sizeof(buf), po->argname);
|
||||
}
|
||||
printf("-%-17s %s\n", buf, po->help);
|
||||
}
|
||||
|
Reference in New Issue
Block a user