Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@telenet.be>2021-03-13 19:35:54 +0100
committerStijn Buys <ingar@telenet.be>2021-03-13 19:35:54 +0100
commit968d170b7a0b744d522a58bf7e7453b19fcd48ca (patch)
tree3f7d33280e731b660b95eea94388fbac7a995864 /src/render
parent8ab68febab5adc69a6f6b2d9c5b591b58649e85e (diff)
Fixes a compiler warning in debian
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));