aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-04-17 17:15:31 +0200
committerEinar Johan Trøan Sømåen2013-04-17 17:15:31 +0200
commit75443da53f053365e18f2e66f7a10ce0d3c66707 (patch)
tree485a602b73e19e73264252e0f5df61b3644f5a81 /engines
parent3ff6af3dde774fa1bad00e11c88009fd3ec2bff1 (diff)
downloadscummvm-rg350-75443da53f053365e18f2e66f7a10ce0d3c66707.tar.gz
scummvm-rg350-75443da53f053365e18f2e66f7a10ce0d3c66707.tar.bz2
scummvm-rg350-75443da53f053365e18f2e66f7a10ce0d3c66707.zip
WINTERMUTE: Use strlcpy instead of strcpy in AdScene::loadBuffer()
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/ad/ad_scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/ad/ad_scene.cpp b/engines/wintermute/ad/ad_scene.cpp
index e5d9d31ee0..339c178078 100644
--- a/engines/wintermute/ad/ad_scene.cpp
+++ b/engines/wintermute/ad/ad_scene.cpp
@@ -755,7 +755,7 @@ bool AdScene::loadBuffer(byte *buffer, bool complete) {
break;
case TOKEN_CAMERA:
- strcpy(camera, (char *)params);
+ Common::strlcpy(camera, (char *)params, MAX_PATH_LENGTH);
break;
case TOKEN_EDITOR_MARGIN_H: