comparison src/list.c @ 3398:48a2e656bdf9

[gaim-migrate @ 3417] Thanks 162923752. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 16 Aug 2002 20:24:20 +0000
parents 1bd472b7f7a2
children 7a3f16a375a5
comparison
equal deleted inserted replaced
3397:4a2955b1ab1a 3398:48a2e656bdf9
797 if ((f = fopen(path, "w"))) { 797 if ((f = fopen(path, "w"))) {
798 debug_printf("writing %s\n", path); 798 debug_printf("writing %s\n", path);
799 toc_build_config(g, buf, 8192 - 1, TRUE); 799 toc_build_config(g, buf, 8192 - 1, TRUE);
800 fprintf(f, "%s\n", buf); 800 fprintf(f, "%s\n", buf);
801 fclose(f); 801 fclose(f);
802 chmod(buf, S_IRUSR | S_IWUSR); 802 chmod(path, S_IRUSR | S_IWUSR);
803 } else { 803 } else {
804 debug_printf("unable to write %s\n", path); 804 debug_printf("unable to write %s\n", path);
805 } 805 }
806 806
807 g_free(g_screenname); 807 g_free(g_screenname);