comparison src/gtkconv.c @ 4478:fa2d74e20a89

[gaim-migrate @ 4753] grp2 is already defined in the windows header file, so I renamed it. Also, we're now opening buddy icon files for writing with "wb" instead of "w". Thanks Herman. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 30 Jan 2003 19:24:48 +0000
parents 62c1e5e656d0
children f2c1cc22251e
comparison
equal deleted inserted replaced
4477:2ea86ba4670b 4478:fa2d74e20a89
4506 * we'll do it differently when gdk-pixbuf-loader isn't leaky anymore. */ 4506 * we'll do it differently when gdk-pixbuf-loader isn't leaky anymore. */
4507 g_snprintf(filename, sizeof(filename), 4507 g_snprintf(filename, sizeof(filename),
4508 "%s" G_DIR_SEPARATOR_S "gaimicon-%s.%d", 4508 "%s" G_DIR_SEPARATOR_S "gaimicon-%s.%d",
4509 g_get_tmp_dir(), gaim_conversation_get_name(conv), getpid()); 4509 g_get_tmp_dir(), gaim_conversation_get_name(conv), getpid());
4510 4510
4511 if (!(file = fopen(filename, "w"))) 4511 if (!(file = fopen(filename, "wb")))
4512 return; 4512 return;
4513 4513
4514 fwrite(data, 1, len, file); 4514 fwrite(data, 1, len, file);
4515 fclose(file); 4515 fclose(file);
4516 4516