comparison utils.c @ 2423:87b7fbed8609 libavcodec

dissallow sprintf
author michael
date Wed, 12 Jan 2005 00:59:42 +0000
parents 18b8b2dcc037
children 1ee03f2a6cd5
comparison
equal deleted inserted replaced
2422:18b8b2dcc037 2423:87b7fbed8609
760 break; 760 break;
761 case 6: 761 case 6:
762 strcpy(channels_str, "5:1"); 762 strcpy(channels_str, "5:1");
763 break; 763 break;
764 default: 764 default:
765 sprintf(channels_str, "%d channels", enc->channels); 765 snprintf(channels_str, sizeof(channels_str), "%d channels", enc->channels);
766 break; 766 break;
767 } 767 }
768 if (enc->sample_rate) { 768 if (enc->sample_rate) {
769 snprintf(buf + strlen(buf), buf_size - strlen(buf), 769 snprintf(buf + strlen(buf), buf_size - strlen(buf),
770 ", %d Hz, %s", 770 ", %d Hz, %s",