OSSP CVS Repository

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

ossp-pkg/lmtp2nntp/sa.c 1.4 -> 1.5

--- sa.c 2001/08/23 09:12:30     1.4
+++ sa.c 2001/08/27 14:49:32     1.5
@@ -76,6 +76,10 @@
 #endif
 #endif
 
+#ifndef NUL
+#define NUL '\0'
+#endif
+
 sa_t *sa_create(int sa_type, ...)
 {
     va_list ap;
@@ -133,7 +137,7 @@
 
         /* resolve port */
         bNumeric = 1;
-        for (i = 0; cpPort[i] != '\0'; i++) {
+        for (i = 0; cpPort[i] != NUL; i++) {
             if (!isdigit(cpPort[i])) {
                 bNumeric = 0;
                 break;

CVSTrac 2.0.1