diff options
author | Stijn Buys <ingar@telenet.be> | 2021-03-13 19:35:54 +0100 |
---|---|---|
committer | Stijn Buys <ingar@telenet.be> | 2021-03-13 19:35:54 +0100 |
commit | 968d170b7a0b744d522a58bf7e7453b19fcd48ca (patch) | |
tree | 3f7d33280e731b660b95eea94388fbac7a995864 /src | |
parent | 8ab68febab5adc69a6f6b2d9c5b591b58649e85e (diff) |
Fixes a compiler warning in debian
Diffstat (limited to 'src')
-rw-r--r-- | src/render/tgafile.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/tgafile.cc b/src/render/tgafile.cc index 15447df..ee12f8a 100644 --- a/src/render/tgafile.cc +++ b/src/render/tgafile.cc @@ -353,7 +353,7 @@ void TGA::save(const char *filename, Image & image) // write footer (optional, but the specification recommends it) char footer[26]; memset(footer, 0, sizeof(footer)); - strncpy(&footer[8] , "TRUEVISION-XFILE", 16); + memcpy(footer + 8 , "TRUEVISION-XFILE", 16); footer[24] = '.'; footer[25] = 0; ofs.write(footer, sizeof(footer)); |