[Scummvm-git-logs] scummvm master -> 51643e45267b87906c0bd45a7013e7c2fc77299f

lephilousophe lephilousophe at users.noreply.github.com
Sun Jun 27 10:33:47 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
51643e4526 PARALLACTION: Fix build using our own strlcpy


Commit: 51643e45267b87906c0bd45a7013e7c2fc77299f
    https://github.com/scummvm/scummvm/commit/51643e45267b87906c0bd45a7013e7c2fc77299f
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2021-06-27T12:33:01+02:00

Commit Message:
PARALLACTION: Fix build using our own strlcpy

Changed paths:
    engines/parallaction/exec_br.cpp


diff --git a/engines/parallaction/exec_br.cpp b/engines/parallaction/exec_br.cpp
index c51ab2ecf9..4475a54640 100644
--- a/engines/parallaction/exec_br.cpp
+++ b/engines/parallaction/exec_br.cpp
@@ -284,12 +284,12 @@ DECLARE_COMMAND_OPCODE(swap) {
 	AnimationPtr newCharacterAnimation = _vm->_location.findAnimation(newCharacterName);
 	AnimationPtr oldCharaterAnimation = _vm->_char._ani;
 
-	strlcpy(oldCharaterAnimation->_name, _vm->_char.getName(), ZONENAME_LENGTH);
+	Common::strlcpy(oldCharaterAnimation->_name, _vm->_char.getName(), ZONENAME_LENGTH);
 	_vm->_char.setName(newCharacterName);
 
 	_vm->_char._ani = newCharacterAnimation;
 	_vm->_char._talk = _vm->_disk->loadTalk(newCharacterName);
-	strlcpy(_vm->_char._ani->_name, "yourself", ZONENAME_LENGTH);
+	Common::strlcpy(_vm->_char._ani->_name, "yourself", ZONENAME_LENGTH);
 
 	_vm->linkUnlinkedZoneAnimations();
 




More information about the Scummvm-git-logs mailing list