Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/tgafile.cc2
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));