X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=chat%2Fchat.c;h=bf107335c8458fa296a75f171c967b6669fb4a17;hp=dc6cf2e3dea8a6fc75f5a4f1f66a40543dd475f2;hb=d00f8a0e184cc73b1ca33a9b22c1b1f87292a72f;hpb=a75742c5e72fa5718e57d77586887d58755feebe diff --git a/chat/chat.c b/chat/chat.c index dc6cf2e..bf10733 100644 --- a/chat/chat.c +++ b/chat/chat.c @@ -512,6 +512,7 @@ void msgf __V((const char *fmt, ...)) syslog(LOG_INFO, "%s", line); if (to_stderr) fprintf(stderr, "%s\n", line); + va_end(args); } /* @@ -537,6 +538,7 @@ void fatal __V((int code, const char *fmt, ...)) syslog(LOG_ERR, "%s", line); if (to_stderr) fprintf(stderr, "%s\n", line); + va_end(args); terminate(code); } @@ -1167,6 +1169,7 @@ register char *s; if (timeout_next) { timeout_next = 0; + s = clean(s, 0); timeout = atoi(s); if (timeout <= 0) @@ -1303,7 +1306,7 @@ register char *s; if (verbose) { if (quiet) - msgf("send (??????)"); + msgf("send (?????\?)"); else msgf("send (%v)", s); }