mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 04:30:37 -04:00
- Drop unneeded flags - Switch to options helpers - Regenerate patches - Fix binary permissings for highscores to properly work
11 lines
510 B
C
11 lines
510 B
C
--- src/savegame.c.orig 2003-05-21 16:06:05 UTC
|
|
+++ src/savegame.c
|
|
@@ -166,7 +166,7 @@ gchar *save_game(gchar *rules, gint scor
|
|
if((f = fopen(fname, "w")) != NULL) {
|
|
chmod(fname, 0600);
|
|
/* TODO: check for errors ! */
|
|
- fprintf(f, rules);
|
|
+ fprintf(f, "%s", rules);
|
|
fprintf(f, "%010d", score);
|
|
for(i = 0; i < rules_get_width() * rules_get_height(); i++) {
|
|
fprintf(f, "%02d", board[i]);
|