diff options
author | Einar Johan Trøan Sømåen | 2013-04-17 17:15:31 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-04-17 17:15:31 +0200 |
commit | 75443da53f053365e18f2e66f7a10ce0d3c66707 (patch) | |
tree | 485a602b73e19e73264252e0f5df61b3644f5a81 /engines/wintermute/ad | |
parent | 3ff6af3dde774fa1bad00e11c88009fd3ec2bff1 (diff) | |
download | scummvm-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/wintermute/ad')
-rw-r--r-- | engines/wintermute/ad/ad_scene.cpp | 2 |
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: |