[Scummvm-git-logs] scummvm master -> d6d8ed744dcca17ce4d75b1c3b7fb9561a9f3756

Strangerke Strangerke at scummvm.org
Mon Jun 7 07:08:41 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:
d6d8ed744d TRECISION: Turn StackText._text into a Common::String


Commit: d6d8ed744dcca17ce4d75b1c3b7fb9561a9f3756
    https://github.com/scummvm/scummvm/commit/d6d8ed744dcca17ce4d75b1c3b7fb9561a9f3756
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2021-06-07T08:08:27+01:00

Commit Message:
TRECISION: Turn StackText._text into a Common::String

Changed paths:
    engines/trecision/text.cpp
    engines/trecision/text.h


diff --git a/engines/trecision/text.cpp b/engines/trecision/text.cpp
index c4edbcf97a..6579f4c9b4 100644
--- a/engines/trecision/text.cpp
+++ b/engines/trecision/text.cpp
@@ -384,7 +384,7 @@ void TextManager::addText(Common::Point pos, const char *text, uint16 textCol, u
 	t._textCol = textCol;
 	t._shadowCol = shadowCol;
 	t._clear = false;
-	strcpy(t._text, text);
+	t._text = text;
 
 	_textStack.push_back(t);
 }
diff --git a/engines/trecision/text.h b/engines/trecision/text.h
index 145f572057..8c3fae53ce 100644
--- a/engines/trecision/text.h
+++ b/engines/trecision/text.h
@@ -37,7 +37,7 @@ struct StackText {
 	uint16 _x;
 	uint16 _y;
 	uint16 _textCol, _shadowCol;
-	char _text[256];
+	Common::String _text;
 	bool _clear;
 };
 




More information about the Scummvm-git-logs mailing list