/pidgin/main: 93d7461ccc1c: Read theme file as binary (to avoid ...

Daniel Atallah datallah at pidgin.im
Tue Nov 5 22:10:49 EST 2013


Changeset: 93d7461ccc1c0cfe6cfebe76c91447bd9b53dc13
Author:	 Daniel Atallah <datallah at pidgin.im>
Date:	 2013-11-06 03:10 +0000
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/93d7461ccc1c

Description:

Read theme file as binary (to avoid windows messing with line endings and stuff

diffstat:

 pidgin/gtkthemes.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/pidgin/gtkthemes.c b/pidgin/gtkthemes.c
--- a/pidgin/gtkthemes.c
+++ b/pidgin/gtkthemes.c
@@ -222,7 +222,7 @@ pidgin_smiley_themes_remove_non_existing
 
 void pidgin_themes_load_smiley_theme(const char *file, gboolean load)
 {
-	FILE *f = g_fopen(file, "r");
+	FILE *f = g_fopen(file, "rb");
 	char buf[256];
 	char *i;
 	gsize line_nbr = 0;



More information about the Commits mailing list