Fix sprintf warning

This commit is contained in:
Alexander Batalov 2022-08-11 13:41:06 +03:00
parent dcb53393c1
commit ca78b94a7d
1 changed files with 1 additions and 1 deletions

View File

@ -1208,7 +1208,7 @@ static int _protinst_default_use_item(Object* a1, Object* a2, Object* item)
messageListItem.num = 582;
if (messageListGetItem(&gProtoMessageList, &messageListItem)) {
sprintf(formattedText, messageListItem.text);
sprintf(formattedText, "%s", messageListItem.text);
displayMonitorAddMessage(formattedText);
}
return -1;