--- lmtp2nntp.c 2001/10/09 10:19:12 1.72
+++ lmtp2nntp.c 2001/10/09 10:24:41 1.73
@@ -355,6 +355,9 @@
l2_channel_t *chFile;
pid_t pid;
FILE *fd;
+ char *cpName;
+ char *cpValue;
+ int nValue;
/* library version check (run-time) */
if (l2_version.v_hex < L2_VERSION_HEX_REQ) {
@@ -643,7 +646,7 @@
*cpValue++ = NUL;
nValue = atoi(cpValue);
if (nValue < 0) {
- fprintf(stderr, "%s:Error: timeout %s=%d to option -t must be a positive integer.\n", ctx->progname, cpName, nValue)
+ fprintf(stderr, "%s:Error: timeout %s=%d to option -t must be a positive integer.\n", ctx->progname, cpName, nValue);
CU(ERR_EXECUTION);
}
if (strcmp(cpName, "lmtp") == 0) {
@@ -672,6 +675,7 @@
fprintf(stderr, "%s:Error: unknown timeout %s to option -t.\n", ctx->progname, cpName);
CU(ERR_EXECUTION);
}
+ free(cpName);
}
free(azTimeout);
break;
|