ref: 695e8b3d0942f23066279acdbf0be70c4e54420a
parent: 658479b48afa384c0d025a1e6213329baad1485d
author: Turo Lamminen <turotl@gmail.com>
date: Sat Feb 17 11:13:10 EST 2018
setup: Fix format string problems in level select dialog
--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -421,7 +421,8 @@
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 @@
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);