From ca78b94a7d6b2dc276af1fce9b725a5a1d3c8c5d Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Thu, 11 Aug 2022 13:41:06 +0300 Subject: [PATCH] Fix sprintf warning --- src/proto_instance.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_instance.cc b/src/proto_instance.cc index e3f782d..3bae855 100644 --- a/src/proto_instance.cc +++ b/src/proto_instance.cc @@ -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;