comparison src/prpl.c @ 4802:5b24e8e52e4a

[gaim-migrate @ 5122] this might help figure it out i still haven't done those dishes committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 16 Mar 2003 22:34:43 +0000
parents 7fd8a82a7c36
children f7150929332b
comparison
equal deleted inserted replaced
4801:ef6d17c83328 4802:5b24e8e52e4a
24 #include "prpl.h" 24 #include "prpl.h"
25 #include <sys/types.h> 25 #include <sys/types.h>
26 #include <sys/stat.h> 26 #include <sys/stat.h>
27 #include <unistd.h> 27 #include <unistd.h>
28 #include <string.h> 28 #include <string.h>
29 #include <errno.h>
29 30
30 #ifdef _WIN32 31 #ifdef _WIN32
31 #include "win32dep.h" 32 #include "win32dep.h"
32 #endif 33 #endif
33 34
616 char *old_icon = gaim_buddy_get_setting(b, "buddy_icon"); 617 char *old_icon = gaim_buddy_get_setting(b, "buddy_icon");
617 FILE *file = NULL; 618 FILE *file = NULL;
618 619
619 g_free(random); 620 g_free(random);
620 621
621 if(!g_file_test(dirname, G_FILE_TEST_IS_DIR)) 622 if(!g_file_test(dirname, G_FILE_TEST_IS_DIR)) {
622 mkdir(dirname, S_IRUSR | S_IWUSR | S_IXUSR); 623 debug_printf("creating icon cache directory\n");
624 if(mkdir(dirname, S_IRUSR | S_IWUSR | S_IXUSR) < 0)
625 debug_printf("error creating directory %s: %s\n",
626 dirname, strerror(errno));
627 }
623 628
624 g_free(dirname); 629 g_free(dirname);
625 630
626 file = fopen(filename, "wb"); 631 file = fopen(filename, "wb");
627 if (file) { 632 if (file) {