summaryrefslogtreecommitdiff
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
parent33e54d79badffc06cb5344a906e765c8bcffbbcf (diff)
sprintf considered harmful...
-rwxr-xr-xREADME2
-rwxr-xr-xsrc/AS_DCP.h3
-rw-r--r--src/MDD.cpp2
-rwxr-xr-xsrc/wavesplit.cpp4
4 files changed, 6 insertions, 5 deletions
diff --git a/README b/README
index 2da0290..173fb36 100755
--- a/README
+++ b/README
@@ -115,7 +115,7 @@ utilities all respond to -h and there are manual pages in man/.
Change History
2006.09.28 - Bug fixes v1.1.10
o Changed RM_RELEASE to RL_RELEASE in MXFTypes.h.
- o Cahnged the MXF writer to use RL_RELEASE (was RL_DEVELOPMENT).
+ o Changed the MXF writer to use RL_RELEASE (was RL_DEVELOPMENT).
o Really fixed source reference chain.
o Updated JP2K file package label.
o Changed location of JPEG2000PictureSubDescriptor in the
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);
}
}