[Scummvm-git-logs] scummvm master -> 4801ca05a13bf3ea0b2adaffaa769c135ccbe095

aquadran noreply at scummvm.org
Wed Jul 23 05:30:57 UTC 2025


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

Summary:
4801ca05a1 WINTERMUTE: Synced with original


Commit: 4801ca05a13bf3ea0b2adaffaa769c135ccbe095
    https://github.com/scummvm/scummvm/commit/4801ca05a13bf3ea0b2adaffaa769c135ccbe095
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-07-23T07:30:52+02:00

Commit Message:
WINTERMUTE: Synced with original

Changed paths:
    engines/wintermute/ad/ad_sentence.cpp


diff --git a/engines/wintermute/ad/ad_sentence.cpp b/engines/wintermute/ad/ad_sentence.cpp
index b0b5acc8c8c..c94def6cd58 100644
--- a/engines/wintermute/ad/ad_sentence.cpp
+++ b/engines/wintermute/ad/ad_sentence.cpp
@@ -178,7 +178,8 @@ char *AdSentence::getStance(int stance) {
 
 	_tempStance = new char [curr - start + 1];
 	if (_tempStance) {
-		Common::strlcpy(_tempStance, start, curr - start + 1);
+        _tempStance[curr - start] = '\0';
+		Common::strlcpy(_tempStance, start, curr - start);
 	}
 
 	return _tempStance;




More information about the Scummvm-git-logs mailing list