mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
b9a29a82a3
Obtained from: Steven Mestdagh <steven.mestdagh@esat.kuleuven.be> (OpenBSD port)
19 lines
561 B
C
19 lines
561 B
C
|
|
$FreeBSD$
|
|
|
|
--- opening.c.orig
|
|
+++ opening.c
|
|
@@ -95,10 +95,10 @@
|
|
{
|
|
draw_string(120, 330+i*25, player->Rec[i].name,
|
|
strlen(player->Rec[i].name));
|
|
- sprintf(buff,"%2d-%2d",player->Rec[i].loop,
|
|
+ snprintf(buff, sizeof(buff), "%2d-%2d",player->Rec[i].loop,
|
|
player->Rec[i].stage);
|
|
draw_string(270, 330+i*25, buff, strlen(buff));
|
|
- sprintf(buff,"%8d",player->Rec[i].score);
|
|
+ snprintf(buff, sizeof(buff), "%8d",player->Rec[i].score);
|
|
draw_string(350, 330+i*25, buff, strlen(buff));
|
|
}
|
|
}
|