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
12 lines
457 B
Diff
12 lines
457 B
Diff
--- netscore.cpp.orig 2001-07-23 05:25:17.000000000 +0200
|
|
+++ netscore.cpp 2014-09-28 13:54:05.456466282 +0200
|
|
@@ -59,7 +59,7 @@
|
|
|
|
/* Send the scores */
|
|
crc = get_checksum(key, KEY_LEN);
|
|
- sprintf(netbuf, SCOREFMT, crc, high.name, high.score, high.wave);
|
|
+ snprintf(netbuf, sizeof(netbuf), SCOREFMT, crc, high.name, high.score, high.wave);
|
|
SDLNet_TCP_Send(remote, netbuf, strlen(netbuf));
|
|
n = SDLNet_TCP_Recv(remote, netbuf, 1024);
|
|
if ( n > 0 ) {
|