aboutsummaryrefslogtreecommitdiff
path: root/graphics/xli/files/patch-tga.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xli/files/patch-tga.c')
-rw-r--r--graphics/xli/files/patch-tga.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/xli/files/patch-tga.c b/graphics/xli/files/patch-tga.c
new file mode 100644
index 000000000000..d42ddbdeddca
--- /dev/null
+++ b/graphics/xli/files/patch-tga.c
@@ -0,0 +1,11 @@
+--- tga.c.orig Thu Oct 13 04:41:39 2005
++++ tga.c Thu Oct 13 04:42:08 2005
+@@ -116,7 +116,7 @@
+ char colors[40];
+
+ if (hp->ImgType == TGA_Map || hp->ImgType == TGA_RLEMap)
+- sprintf(colors," with %d colors",hp->Length);
++ snprintf(colors,sizeof(colors)," with %d colors",hp->Length);
+ else
+ colors[0] = '\000';
+