aboutsummaryrefslogtreecommitdiff
path: root/engines/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/engine.cpp')
-rw-r--r--engines/engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/engine.cpp b/engines/engine.cpp
index dcdcbd1d32..2c9835acc5 100644
--- a/engines/engine.cpp
+++ b/engines/engine.cpp
@@ -251,8 +251,8 @@ bool Engine::shouldPerformAutoSave(int lastSaveTime) {
return autosavePeriod != 0 && diff > autosavePeriod * 1000;
}
-void Engine::errorString(const char *buf1, char *buf2) {
- strcpy(buf2, buf1);
+void Engine::errorString(const char *buf1, char *buf2, int size) {
+ strncpy(buf2, buf1, size);
}
void Engine::pauseEngine(bool pause) {