diff options
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)); |