OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/lmtp2nntp.c versions 1.29 and 1.30
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/lmtp2nntp.c 1.29 -> 1.30

--- lmtp2nntp.c  2001/08/27 14:29:11     1.29
+++ lmtp2nntp.c  2001/08/27 14:49:32     1.30
@@ -45,6 +45,10 @@
 #define TRUE (!FALSE)
 #endif
 
+#ifndef NUL
+#define NUL '\0'
+#endif
+
 #define ERR_EXECUTION -1
 #define ERR_DELIVERY -2
 
@@ -202,7 +206,7 @@
                         exit(ERR_EXECUTION);
                     }
 
-                    optarg[3] = '\0';
+                    optarg[3] = NUL;
                     ctx->option_deliverymodefakestatus = &optarg[0];
                     ctx->option_deliverymodefakedsn    = &optarg[4];
 
@@ -247,7 +251,7 @@
                 /* parse host[:port] string into host and port */
                 cpHost = strdup(optarg);
                 if ((cpPort = strrchr(cpHost, ':')) != NULL) {
-                    *cpPort++ = '\0';
+                    *cpPort++ = NUL;
                     cpPort = strdup(cpPort);
                 }
                 else 

CVSTrac 2.0.1