[monkey-bubble: 98/753] open in TEXT mode



commit 522ad17b768331486a650bf74e944958431f2b10
Author: Asbjørn Pettersen <asbjoer src gnome org>
Date:   Thu Apr 8 19:53:07 1999 +0000

    open in TEXT mode

 libgnome/gnome-score.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgnome/gnome-score.c b/libgnome/gnome-score.c
index 5b169e8..0f04d39 100644
--- a/libgnome/gnome-score.c
+++ b/libgnome/gnome-score.c
@@ -103,7 +103,7 @@ log_score (const gchar * progname, const gchar * level, gchar * username,
 
    game_score_file = gnome_get_score_file_name (progname, level);
 
-   infile = fopen (game_score_file, "r");
+   infile = fopen (game_score_file, "rt");
    if (infile)
      {
        while(fgets(buf, sizeof(buf), infile))
@@ -162,7 +162,7 @@ log_score (const gchar * progname, const gchar * level, gchar * username,
    
    /* we dont create the file; it must already exist */
    truncate (game_score_file, 0);
-   outfile = fopen (game_score_file, "r+");
+   outfile = fopen (game_score_file, "r+t");
    
    if (outfile)
      {
@@ -380,7 +380,7 @@ gnome_score_get_notable (gchar * gamename,
    
    infile_name = gnome_get_score_file_name (realname, level);
    
-   infile = fopen (infile_name, "r");
+   infile = fopen (infile_name, "rt");
    g_free (infile_name);
    
    if (infile)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]