diff options
-rw-r--r-- | engines/agi/saveload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp index ea102bf0d4..c449f076e7 100644 --- a/engines/agi/saveload.cpp +++ b/engines/agi/saveload.cpp @@ -678,7 +678,7 @@ int AgiEngine::selectSlot() { switch (key) { case KEY_ENTER: rc = active; - strncpy(_game.strings[MAX_STRINGS], desc[i], MAX_STRINGLEN); + Common::strlcpy(_game.strings[MAX_STRINGS], desc[i], MAX_STRINGLEN); debugC(8, kDebugLevelMain | kDebugLevelInput, "Button pressed: %d", rc); exitSelectSlot = true; break; |