forked from pool/maelstrom
- Change Desktop entry file - Remove leading article from Summary - Change URL - Remove obsolete patches - Add new patches from Gentoo, Fedora and my port in FreeBSD - Add patches, correct FSF Address add missing includes - Add BuildRequires for desktop-file-utils - Change description - Fix paths - Simplify installation handling - Use install-binPROGRAMS and normal Name for executables Maelstrom and Maelstrom-netd I maintain Maelstorm in FreeBSD. OBS-URL: https://build.opensuse.org/request/show/252721 OBS-URL: https://build.opensuse.org/package/show/games/maelstrom?expand=0&rev=8
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
--- main.cpp.orig 2002-10-20 04:53:32.000000000 +0200
|
|
+++ main.cpp 2014-09-28 22:22:18.091980512 +0200
|
|
@@ -445,7 +445,7 @@
|
|
DrawText(xOff+309-7, yOff+240-6, text, geneva, STYLE_BOLD,
|
|
0x00, 0x00, 0x00);
|
|
}
|
|
- sprintf(text, "%d", gSoundLevel);
|
|
+ snprintf(text, sizeof(text), "%d", gSoundLevel);
|
|
DrawText(xOff+309-7, yOff+240-6, text, geneva, STYLE_BOLD,
|
|
30000>>8, 30000>>8, 0xFF);
|
|
screen->Update();
|
|
@@ -547,7 +547,7 @@
|
|
}
|
|
DrawText(xOff+5, botDiv+42+(index*18), hScores[index].name,
|
|
font, STYLE_BOLD, R, G, B);
|
|
- sprintf(buffer, "%u", hScores[index].score);
|
|
+ snprintf(buffer, sizeof(buffer), "%u", hScores[index].score);
|
|
sw = fontserv->TextWidth(buffer, font, STYLE_BOLD);
|
|
DrawText(sRt-sw, botDiv+42+(index*18), buffer,
|
|
font, STYLE_BOLD, R, G, B);
|
|
@@ -560,7 +560,7 @@
|
|
|
|
DrawText(xOff+5, botDiv+46+(10*18)+3, "Last Score: ",
|
|
bigfont, STYLE_NORM, 0xFF, 0xFF, 0xFF);
|
|
- sprintf(buffer, "%d", GetScore());
|
|
+ snprintf(buffer, sizeof(buffer), "%d", GetScore());
|
|
sw = fontserv->TextWidth("Last Score: ", bigfont, STYLE_NORM);
|
|
DrawText(xOff+5+sw, botDiv+46+(index*18)+3, buffer,
|
|
bigfont, STYLE_NORM, 0xFF, 0xFF, 0xFF);
|