comparison mpegaudiodec.c @ 2423:87b7fbed8609 libavcodec

dissallow sprintf
author michael
date Wed, 12 Jan 2005 00:59:42 +0000
parents 582e635cfa08
children d9cf90e66883
comparison
equal deleted inserted replaced
2422:18b8b2dcc037 2423:87b7fbed8609
2128 int i; 2128 int i;
2129 int32_t v; 2129 int32_t v;
2130 2130
2131 f = files[fnum]; 2131 f = files[fnum];
2132 if (!f) { 2132 if (!f) {
2133 sprintf(buf, "/tmp/out%d.%s.pcm", 2133 snprintf(buf, sizeof(buf), "/tmp/out%d.%s.pcm",
2134 fnum, 2134 fnum,
2135 #ifdef USE_HIGHPRECISION 2135 #ifdef USE_HIGHPRECISION
2136 "hp" 2136 "hp"
2137 #else 2137 #else
2138 "lp" 2138 "lp"