diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/graphics/cursors/cursor_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/zvision/graphics/cursors/cursor_manager.cpp b/engines/zvision/graphics/cursors/cursor_manager.cpp index ae13c9f4fc..92fd461c72 100644 --- a/engines/zvision/graphics/cursors/cursor_manager.cpp +++ b/engines/zvision/graphics/cursors/cursor_manager.cpp @@ -62,7 +62,8 @@ CursorManager::CursorManager(ZVision *engine, const Graphics::PixelFormat *pixel } else if (_engine->getGameId() == GID_GRANDINQUISITOR) { _cursors[i][0] = ZorkCursor(_engine, _zgiCursorFileNames[i]); // Up cursor char buffer[25]; - strcpy(buffer, _zgiCursorFileNames[i]); + memset(buffer, 0, 25); + strncpy(buffer, _zgiCursorFileNames[i], 24); buffer[3] += 2; _cursors[i][1] = ZorkCursor(_engine, buffer); // Down cursor } |