OSSP CVS Repository

ossp - Check-in [1117]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 1117
Date: 2001-Oct-09 12:24:41 (local)
2001-Oct-09 10:24:41 (UTC)
User:rse
Branch:
Comment: bugfix syntax
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/lmtp2nntp.c      1.72 -> 1.73     5 inserted, 1 deleted

ossp-pkg/lmtp2nntp/lmtp2nntp.c 1.72 -> 1.73

--- 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;

CVSTrac 2.0.1