diff options
| author | jhurst <jhurst@cinecert.com> | 2006-10-05 21:38:23 +0000 |
|---|---|---|
| committer | jhurst <> | 2006-10-05 21:38:23 +0000 |
| commit | caff906c8c3000c2c9e4a48d624439a4f0eced6b (patch) | |
| tree | d4a9594d567ac5aaae611fc1eb4c0275a5e2dbf9 /src/wavesplit.cpp | |
| parent | 33e54d79badffc06cb5344a906e765c8bcffbbcf (diff) | |
sprintf considered harmful...
Diffstat (limited to 'src/wavesplit.cpp')
| -rwxr-xr-x | src/wavesplit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |
