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/MXF.h | |
| parent | a526fabf937848823b02d5486a6ec38f8442bb1c (diff) | |
bugfix in indexing
Diffstat (limited to 'src/MXF.h')
| -rwxr-xr-x | src/MXF.h | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -57,7 +57,7 @@ namespace ASDCP inline const char* ToString(char* str_buf) const { char intbuf[IntBufferLen]; - sprintf(str_buf, "%-6lu: %s", BodySID, ui64sz(ByteOffset, intbuf)); + snprintf(str_buf, IdentBufferLen, "%-6lu: %s", BodySID, ui64sz(ByteOffset, intbuf)); return str_buf; } @@ -134,7 +134,7 @@ namespace ASDCP ASDCP::UL UL; inline const char* ToString(char* str_buf) const { - sprintf(str_buf, "%02x %02x: ", Tag.a, Tag.b); + snprintf(str_buf, IdentBufferLen, "%02x %02x: ", Tag.a, Tag.b); UL.ToString(str_buf + strlen(str_buf)); return str_buf; } @@ -192,10 +192,7 @@ namespace ASDCP virtual Result_t InitFromTLVSet(TLVReader& TLVSet); virtual Result_t WriteToBuffer(ASDCP::FrameBuffer&); virtual bool IsA(const byte_t* label); - - virtual void Dump(FILE* stream = 0) { - KLVPacket::Dump(stream, true); - } + virtual void Dump(FILE* stream = 0); }; // |
