diff options
| author | jhurst <jhurst@cinecert.com> | 2006-01-06 07:19:32 +0000 |
|---|---|---|
| committer | jhurst <> | 2006-01-06 07:19:32 +0000 |
| commit | 6e23666cb6184999efc74577cfb1b524181ba5df (patch) | |
| tree | 0400f487b37da3e263f93af8afcfacb318d24087 /src/asdcp-test.cpp | |
| parent | a526fabf937848823b02d5486a6ec38f8442bb1c (diff) | |
bugfix in indexing
Diffstat (limited to 'src/asdcp-test.cpp')
| -rwxr-xr-x | src/asdcp-test.cpp | 6 |
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) ) |
