foxygit / doom Log in
commit 695e8b3d0942f23066279acdbf0be70c4e54420a
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Feb 17 16:13:10 2018 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Feb 17 16:13:10 2018 +0200

    setup: Fix format string problems in level select dialog
---
 src/setup/multiplayer.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/setup/multiplayer.c b/src/setup/multiplayer.c
index b9c3c02c..eb166c05 100644
--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -421,7 +421,8 @@ static void LevelSelectDialog(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(user_data))
                     continue;
                 }

-                M_snprintf(buf, sizeof(buf), " E%iM%i ", x, y);
+                M_snprintf(buf, sizeof(buf),
+                           " E%" PRIiPTR "M%" PRIiPTR " ", x, y);
                 button = TXT_NewButton(buf);
                 TXT_SignalConnect(button, "pressed",
                                   SetExMyWarp, (void *) (x * 10 + y));
@@ -453,7 +454,7 @@ static void LevelSelectDialog(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(user_data))
                 continue;
             }

-            M_snprintf(buf, sizeof(buf), " MAP%02i ", l);
+            M_snprintf(buf, sizeof(buf), " MAP%02" PRIiPTR " ", l);
             button = TXT_NewButton(buf);
             TXT_SignalConnect(button, "pressed",
                               SetMAPxyWarp, (void *) l);