aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorJulien2011-06-05 05:50:40 +0800
committerJulien2011-06-23 15:11:37 +0800
commit8a5bda72cca58314c639432d5ab718a70fd42b90 (patch)
tree9b966d694ff38237a6041498335549b06b8fd619 /backends/platform
parent367605d774df038166b14044a5f5ce935f244519 (diff)
downloadscummvm-rg350-8a5bda72cca58314c639432d5ab718a70fd42b90.tar.gz
scummvm-rg350-8a5bda72cca58314c639432d5ab718a70fd42b90.tar.bz2
scummvm-rg350-8a5bda72cca58314c639432d5ab718a70fd42b90.zip
BACKENDS/GRAPHICS: Silence non zero-terminated terminated buffers warnings by initializing the buffers to 0
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/sdl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index 3f85b1a564..96d65c5eb2 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -413,6 +413,7 @@ void OSystem_SDL::setupIcon() {
for (i = 0; i < ncols; i++) {
unsigned char code;
char color[32];
+ memset(color, 0, sizeof(color));
unsigned int col;
if (sscanf(scummvm_icon[1 + i], "%c c %s", &code, color) != 2) {
warning("Wrong format of scummvm_icon[%d] (%s)", 1 + i, scummvm_icon[1 + i]);