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