diff nnchat.c @ 359:8f3c102db611

Fix SOCKS handling.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Jun 2011 10:11:45 +0300
parents c01e42fc9adb
children b465a17ffa47
line wrap: on
line diff
--- a/nnchat.c	Thu Jun 23 09:00:14 2011 +0300
+++ b/nnchat.c	Thu Jun 23 10:11:45 2011 +0300
@@ -535,12 +535,10 @@
 void errorMsgV(const char *fmt, va_list ap)
 {
     char *tmp;
-    va_list ap2;
 
-    va_copy(ap2, ap);
-    printMsgV(chatWindows[0], LOG_STAMP | LOG_WINDOW | LOG_FILE, fmt, ap);
+    tmp = th_strdup_vprintf(fmt, ap);
 
-    tmp = th_strdup_vprintf(fmt, ap2);
+    printMsg(NULL, "%s", tmp);
     
     if (errorMessages != NULL) {
         char *tmp2 = th_strdup_printf("%s%s", errorMessages, tmp);