diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-07-03 15:48:30 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-07-03 15:48:30 +0200 |
commit | 36219517c52ad97ab96545c9289b82890861d77b (patch) | |
tree | 7d1f73ac9c3c0009df86ef4210ecba6f39b90bd8 /src/wavfile.cpp | |
parent | e7a9a94fb8ebd50e10ed403ef871620181d3aa1d (diff) | |
download | ODR-AudioEnc-36219517c52ad97ab96545c9289b82890861d77b.tar.gz ODR-AudioEnc-36219517c52ad97ab96545c9289b82890861d77b.tar.bz2 ODR-AudioEnc-36219517c52ad97ab96545c9289b82890861d77b.zip |
Enable -Wall and fix a few warnings
Diffstat (limited to 'src/wavfile.cpp')
-rw-r--r-- | src/wavfile.cpp | 8 |
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; |