dissallow sprintf
Originally committed as revision 3823 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -762,7 +762,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
|
||||
strcpy(channels_str, "5:1");
|
||||
break;
|
||||
default:
|
||||
sprintf(channels_str, "%d channels", enc->channels);
|
||||
snprintf(channels_str, sizeof(channels_str), "%d channels", enc->channels);
|
||||
break;
|
||||
}
|
||||
if (enc->sample_rate) {
|
||||
|
Reference in New Issue
Block a user