Mercurial > pidgin.yaz
comparison src/util.c @ 1250:b5783215b245
[gaim-migrate @ 1260]
decklin's clean up of the account editor, much needed.
indent -kr -i8 -l105 -ncs -cp7 -npcs -T GtkWidget -T gpointer -T AppletCallbackFunc -T GtkFunction -T gaim_plugin_remove -T name -T FILE -T gchar -T user_opts -T GdkEvent -T GtkObject ...
did about.c, aim.c, away.c, browser.c, buddy_chat.c, gaimrc.c, html.c, idle.c, multi.c. Need to do buddy.c, conversation.c, dialogs.c, oscar.c, perl.c, plugins.c, prefs.c, proxy.c, prpl.c, rvous.c, server.c, sound.c, toc.c, util.c. not doing gtkhtml.c because it's a piece of crap anyway, or *ticker.c because they're syd's.
got rid of debug_buff, just debug_printf now.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 13 Dec 2000 20:18:35 +0000 |
parents | 78c4f497db2b |
children | 46c09828e929 |
comparison
equal
deleted
inserted
replaced
1249:3e44de27622d | 1250:b5783215b245 |
---|---|
401 | 401 |
402 g_snprintf(log_all_file, 256, "%s/logs/%s.log", gaim_dir, normalize(name)); | 402 g_snprintf(log_all_file, 256, "%s/logs/%s.log", gaim_dir, normalize(name)); |
403 if (stat(log_all_file, &st) < 0) | 403 if (stat(log_all_file, &st) < 0) |
404 flag = 1; | 404 flag = 1; |
405 | 405 |
406 sprintf(debug_buff,"Logging to: \"%s\"\n", log_all_file); | 406 debug_printf("Logging to: \"%s\"\n", log_all_file); |
407 debug_print(debug_buff); | |
408 | 407 |
409 fd = fopen(log_all_file, "a"); | 408 fd = fopen(log_all_file, "a"); |
410 | 409 |
411 if (fd && flag) { /* is a new file */ | 410 if (fd && flag) { /* is a new file */ |
412 fprintf(fd, "<HTML><HEAD><TITLE>" ); | 411 fprintf(fd, "<HTML><HEAD><TITLE>" ); |
426 { | 425 { |
427 char *c, *cpy; | 426 char *c, *cpy; |
428 int cnt=0; | 427 int cnt=0; |
429 /* Assumes you have a buffer able to cary at least BUF_LEN * 2 bytes */ | 428 /* Assumes you have a buffer able to cary at least BUF_LEN * 2 bytes */ |
430 if (strlen(msg) > BUF_LEN) { | 429 if (strlen(msg) > BUF_LEN) { |
431 sprintf(debug_buff, "Warning: truncating message to 2048 bytes\n"); | 430 debug_printf("Warning: truncating message to 2048 bytes\n"); |
432 debug_print(debug_buff); | |
433 msg[2047]='\0'; | 431 msg[2047]='\0'; |
434 } | 432 } |
435 | 433 |
436 cpy = g_strdup(msg); | 434 cpy = g_strdup(msg); |
437 c = cpy; | 435 c = cpy; |