Skip to content
Snippets Groups Projects
Commit 46ebd425 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix more GCC 12.2 warnings

parent 36ea52b3
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -305,7 +305,7 @@ int main(int argc, char **argv)
}
close(file);
for (l=0;l<length;l+=sizeof(player_stuff)) {
sprintf(player_stuff.name,"%.25s",buf+l);
snprintf(player_stuff.name, sizeof(player_stuff.name), "%s", buf+l);
player_stuff.time=*(ulong *)(buf+l+25);
player_stuff.points=*(long *)(buf+l+29);
truncsp(player_stuff.name);
......@@ -373,7 +373,7 @@ int main(int argc, char **argv)
}
close(file);
for (l=0;l<length;l+=sizeof(player_stuff)) {
sprintf(player_stuff.name,"%.25s",buf+l);
snprintf(player_stuff.name, sizeof(player_stuff.name), "%s",buf+l);
player_stuff.time=*(ulong *)(buf+l+25);
player_stuff.points=*(long *)(buf+l+29);
if (player_stuff.points>0) strcpy(str,"\1m\1hWON!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment