Blame mgetty-1.1.33-sprintf_chk.patch
|
jvdias |
cfec38b |
--- mgetty-1.1.33/voice/libvoice/record.c.sprintf_chk 1999-07-24 17:26:49.000000000 -0400
|
|
jvdias |
cfec38b |
+++ mgetty-1.1.33/voice/libvoice/record.c 2005-07-27 11:34:44.091956000 -0400
|
|
jvdias |
cfec38b |
@@ -50,7 +50,7 @@
|
|
jvdias |
cfec38b |
if (!cvd.raw_data.d.i)
|
|
jvdias |
cfec38b |
{
|
|
jvdias |
cfec38b |
memset(&header, 0x00, sizeof(rmd_header));
|
|
jvdias |
cfec38b |
- sprintf(header.magic, "%s", "RMD1");
|
|
jvdias |
cfec38b |
+ memcpy(&(header.magic[0]), "RMD1", 4);
|
|
jvdias |
cfec38b |
sprintf(header.voice_modem_type, "%s", voice_modem_rmd_name);
|
|
jvdias |
cfec38b |
header.compression = htons(cvd.rec_compression.d.i);
|
|
jvdias |
cfec38b |
header.speed = htons(cvd.rec_speed.d.i);
|