SHA256
1
0
forked from pool/maelstrom
Files
maelstrom/maelstrom-3.0.6-controls.cpp.patch
Matthias Mailänder f228bb2190 Accepting request 252721 from home:nemysis
- 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
2014-09-30 17:38:30 +00:00

12 lines
391 B
Diff

--- controls.cpp.orig 2001-03-24 19:04:28.000000000 +0100
+++ controls.cpp 2014-09-28 13:06:02.007417655 +0200
@@ -83,7 +83,7 @@
if ( fname ) {
*fname = datafile;
}
- sprintf(datafile, "%s"DIR_SEP"%s", home, MAELSTROM_DATA);
+ snprintf(datafile, sizeof(datafile), "%s"DIR_SEP"%s", home, MAELSTROM_DATA);
if ( (data=fopen(datafile, mode)) == NULL )
return(NULL);
return(data);