aboutsummaryrefslogtreecommitdiff
path: root/engines/m4
diff options
context:
space:
mode:
Diffstat (limited to 'engines/m4')
-rw-r--r--engines/m4/mads_views.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/m4/mads_views.cpp b/engines/m4/mads_views.cpp
index 58a9a99211..cc127032eb 100644
--- a/engines/m4/mads_views.cpp
+++ b/engines/m4/mads_views.cpp
@@ -397,6 +397,7 @@ int MadsSpriteSlots::addSprites(const char *resName, bool suppressErrors, int fl
// Append on a '.SS' suffix if the resource doesn't already have an extension
char buffer[100];
strncpy(buffer, resName, 95);
+ buffer[95] = '\0';
if (!strchr(buffer, '.'))
strcat(buffer, ".SS");