diff arogue5/rip.c @ 307:32bc72dcbf4f

Fix some warnings related to format strings.
author John "Elwin" Edwards
date Fri, 30 Apr 2021 20:48:30 -0400
parents e52a8a7ad4c5
children
line wrap: on
line diff
--- a/arogue5/rip.c	Sat Apr 17 15:41:12 2021 -0400
+++ b/arogue5/rip.c	Fri Apr 30 20:48:30 2021 -0400
@@ -632,7 +632,7 @@
         encread((char *) &scores[i].sc_system, SYSLEN, inf);
         encread((char *) &scores[i].sc_login, LINELEN, inf);
         encread((char *) scoreline, 100, inf);
-        sscanf(scoreline, " %lu %d %d %d %d %d \n",
+        sscanf(scoreline, " %lu %hd %hd %hd %hd %hd \n",
         &scores[i].sc_score,   &scores[i].sc_flgs,
         &scores[i].sc_level,   &scores[i].sc_ctype,
         &scores[i].sc_monster, &scores[i].sc_quest);