comparison src/core.c @ 5435:a2f26666de42

[gaim-migrate @ 5817] Phroggie says windows doesn't have a z modifier, so I'm just going to change size_t to an int, since it really doesn't matter. I also changed some sprintf's to snprintf's, I'm not really sure why. Changed a printf to gaim_debug in oscar.c, I don't know how that got in there. And I applied a patch that adds an optional callback thing for when a connection is closed. Gaim doesn't use it, but the guy that submitted the patch said it was useful to him. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 18 May 2003 19:13:21 +0000
parents 1cf4eb75e3ee
children 9eb5b13fd412
comparison
equal deleted inserted replaced
5434:3034e83c1a49 5435:a2f26666de42
536 { 536 {
537 /* don't save prefs after plugins are gone... */ 537 /* don't save prefs after plugins are gone... */
538 #ifndef _WIN32 538 #ifndef _WIN32
539 char buf[1024]; 539 char buf[1024];
540 close(UI_fd); 540 close(UI_fd);
541 sprintf(buf, "%s" G_DIR_SEPARATOR_S "gaim_%s.%d", 541 snprintf(buf, 1024, "%s" G_DIR_SEPARATOR_S "gaim_%s.%d",
542 g_get_tmp_dir(), g_get_user_name(), gaim_session); 542 g_get_tmp_dir(), g_get_user_name(), gaim_session);
543 543
544 unlink(buf); 544 unlink(buf);
545 545
546 gaim_debug(GAIM_DEBUG_MISC, "core", "Removed core\n"); 546 gaim_debug(GAIM_DEBUG_MISC, "core", "Removed core\n");