diff 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
line wrap: on
line diff
--- a/src/util.c	Wed Dec 13 06:39:24 2000 +0000
+++ b/src/util.c	Wed Dec 13 20:18:35 2000 +0000
@@ -403,8 +403,7 @@
         if (stat(log_all_file, &st) < 0)
                 flag = 1;
 
-        sprintf(debug_buff,"Logging to: \"%s\"\n", log_all_file);
-        debug_print(debug_buff);
+        debug_printf("Logging to: \"%s\"\n", log_all_file);
 
         fd = fopen(log_all_file, "a");
 
@@ -428,8 +427,7 @@
 	int cnt=0;
 	/* Assumes you have a buffer able to cary at least BUF_LEN * 2 bytes */
 	if (strlen(msg) > BUF_LEN) {
-		sprintf(debug_buff, "Warning:  truncating message to 2048 bytes\n");
-		debug_print(debug_buff);
+		debug_printf("Warning:  truncating message to 2048 bytes\n");
 		msg[2047]='\0';
 	}