Fix sprintf warning
This commit is contained in:
parent
dcb53393c1
commit
ca78b94a7d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue