summaryrefslogtreecommitdiff
path: root/src/asdcp-test.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2006-01-06 07:19:32 +0000
committerjhurst <>2006-01-06 07:19:32 +0000
commit6e23666cb6184999efc74577cfb1b524181ba5df (patch)
tree0400f487b37da3e263f93af8afcfacb318d24087 /src/asdcp-test.cpp
parenta526fabf937848823b02d5486a6ec38f8442bb1c (diff)
bugfix in indexing
Diffstat (limited to 'src/asdcp-test.cpp')
-rwxr-xr-xsrc/asdcp-test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/asdcp-test.cpp b/src/asdcp-test.cpp
index 12d8feb..1dfc33f 100755
--- a/src/asdcp-test.cpp
+++ b/src/asdcp-test.cpp
@@ -85,7 +85,7 @@ public:
ProductName = "asdcp-test";
char s_buf[128];
- sprintf(s_buf, "%lu.%lu.%lu", VERSION_MAJOR, VERSION_APIMINOR, VERSION_IMPMINOR);
+ snprintf(s_buf, 128, "%lu.%lu.%lu", VERSION_MAJOR, VERSION_APIMINOR, VERSION_IMPMINOR);
ProductVersion = s_buf;
}
} s_MyInfo;
@@ -562,7 +562,7 @@ read_MPEG2_file(CommandOptions& Options)
if ( ASDCP_SUCCESS(result) )
{
char filename[256];
- sprintf(filename, "%s.ves", Options.file_root);
+ snprintf(filename, 256, "%s.ves", Options.file_root);
result = OutFile.OpenWrite(filename);
}
@@ -844,7 +844,7 @@ read_JP2K_file(CommandOptions& Options)
FileWriter OutFile;
char filename[256];
ui32_t write_count;
- sprintf(filename, "%s%06lu.j2c", Options.file_root, i);
+ snprintf(filename, 256, "%s%06lu.j2c", Options.file_root, i);
result = OutFile.OpenWrite(filename);
if ( ASDCP_SUCCESS(result) )