Fixed Linux preferences not being saved correctly.

This commit is contained in:
leo 2013-01-12 17:55:50 +00:00
parent cd71a02c95
commit b2d80bf128

View file

@ -86,7 +86,7 @@ static bool save_var (const char *section, const char *key, const char *value)
len = ftell (rc); len = ftell (rc);
rewind (rc); rewind (rc);
buf = g_malloc (len); buf = g_malloc (len);
len = fread (buf, len, 1, rc); len = fread (buf, 1, len, rc);
old_rc.WriteBuffer (buf, len); old_rc.WriteBuffer (buf, len);
g_free (buf); g_free (buf);
fclose (rc); fclose (rc);