aboutsummaryrefslogtreecommitdiffstats
path: root/src/wavfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wavfile.cpp')
-rw-r--r--src/wavfile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wavfile.cpp b/src/wavfile.cpp
index 4bd4bd6..fd3dc43 100644
--- a/src/wavfile.cpp
+++ b/src/wavfile.cpp
@@ -226,10 +226,10 @@ void WavWriter::initialise_header(int rate, int channels)
int samples_per_second = rate;
int bits_per_sample = 16;
- strncpy(header.riff_tag,"RIFF",4);
- strncpy(header.wave_tag,"WAVE",4);
- strncpy(header.fmt_tag,"fmt ",4);
- strncpy(header.data_tag,"data",4);
+ memcpy(header.riff_tag,"RIFF",4);
+ memcpy(header.wave_tag,"WAVE",4);
+ memcpy(header.fmt_tag,"fmt ",4);
+ memcpy(header.data_tag,"data",4);
header.riff_length = 0;
header.fmt_length = 16;