comparison src/util.c @ 10506:4f67724c207c

[gaim-migrate @ 11800] This makes prevents CR being added to the files and messing up the st.st_size comparison to the bytes written committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 12 Jan 2005 03:41:29 +0000
parents e94802fe3eaf
children 12349012610b
comparison
equal deleted inserted replaced
10505:91f17026b693 10506:4f67724c207c
1983 filename_temp, strerror(errno)); 1983 filename_temp, strerror(errno));
1984 } 1984 }
1985 } 1985 }
1986 1986
1987 /* Open file */ 1987 /* Open file */
1988 file = fopen(filename_temp, "w"); 1988 file = fopen(filename_temp, "wb");
1989 if (file == NULL) 1989 if (file == NULL)
1990 { 1990 {
1991 gaim_debug_error("util", "Error opening file %s for writing: %s\n", 1991 gaim_debug_error("util", "Error opening file %s for writing: %s\n",
1992 filename_temp, strerror(errno)); 1992 filename_temp, strerror(errno));
1993 g_free(filename_full); 1993 g_free(filename_full);