Mercurial > hg > nnchat
comparison 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 |
comparison
equal
deleted
inserted
replaced
358:98a3c525266b | 359:8f3c102db611 |
---|---|
533 char *errorMessages = NULL; | 533 char *errorMessages = NULL; |
534 | 534 |
535 void errorMsgV(const char *fmt, va_list ap) | 535 void errorMsgV(const char *fmt, va_list ap) |
536 { | 536 { |
537 char *tmp; | 537 char *tmp; |
538 va_list ap2; | 538 |
539 | 539 tmp = th_strdup_vprintf(fmt, ap); |
540 va_copy(ap2, ap); | 540 |
541 printMsgV(chatWindows[0], LOG_STAMP | LOG_WINDOW | LOG_FILE, fmt, ap); | 541 printMsg(NULL, "%s", tmp); |
542 | |
543 tmp = th_strdup_vprintf(fmt, ap2); | |
544 | 542 |
545 if (errorMessages != NULL) { | 543 if (errorMessages != NULL) { |
546 char *tmp2 = th_strdup_printf("%s%s", errorMessages, tmp); | 544 char *tmp2 = th_strdup_printf("%s%s", errorMessages, tmp); |
547 th_free(errorMessages); | 545 th_free(errorMessages); |
548 th_free(tmp); | 546 th_free(tmp); |