summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2006-10-05 21:38:23 +0000
committerjhurst <>2006-10-05 21:38:23 +0000
commitcaff906c8c3000c2c9e4a48d624439a4f0eced6b (patch)
treed4a9594d567ac5aaae611fc1eb4c0275a5e2dbf9 /src
parent33e54d79badffc06cb5344a906e765c8bcffbbcf (diff)
sprintf considered harmful...
Diffstat (limited to 'src')
-rwxr-xr-xsrc/AS_DCP.h3
-rw-r--r--src/MDD.cpp2
-rwxr-xr-xsrc/wavesplit.cpp4
3 files changed, 5 insertions, 4 deletions
diff --git a/src/AS_DCP.h b/src/AS_DCP.h
index 54f3bec..7505666 100755
--- a/src/AS_DCP.h
+++ b/src/AS_DCP.h
@@ -78,8 +78,9 @@ This project depends upon the following library:
#include <KM_error.h>
#include <stdio.h>
#include <stdarg.h>
-#include <iostream>
#include <math.h>
+#include <iostream>
+#include <string>
//--------------------------------------------------------------------------------
// common integer types
diff --git a/src/MDD.cpp b/src/MDD.cpp
index 32d2c69..29be177 100644
--- a/src/MDD.cpp
+++ b/src/MDD.cpp
@@ -795,7 +795,7 @@ static const ASDCP::MDDEntry s_MDD_Table[] = {
{ { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x09, // 253
0x02, 0x09, 0x03, 0x01, 0x02, 0x00, 0x00, 0x00 },
{0}, false, "CryptographicContext_CryptographicKeyID" },
- { 0, 0, 0 }
+ { {0}, {0}, false, 0 }
};
const ui32_t s_MDD_Table_size = 254;
diff --git a/src/wavesplit.cpp b/src/wavesplit.cpp
index 964e616..f7c94c2 100755
--- a/src/wavesplit.cpp
+++ b/src/wavesplit.cpp
@@ -253,12 +253,12 @@ split_wav_file(CommandOptions& Options)
if ( ASDCP_SUCCESS(result) )
{
char filename[256];
- sprintf(filename, "%s_l.wav", Options.file_root);
+ snprintf(filename, 256, "%s_l.wav", Options.file_root);
result = L_OutFile.OpenWrite(filename);
if ( ASDCP_SUCCESS(result) )
{
- sprintf(filename, "%s_r.wav", Options.file_root);
+ snprintf(filename, 256, "%s_r.wav", Options.file_root);
result = R_OutFile.OpenWrite(filename);
}
}