68000 fixes
authorBill Shannon <shannon@ucbvax.Berkeley.EDU>
Fri, 30 Jul 1982 06:21:53 +0000 (22:21 -0800)
committerBill Shannon <shannon@ucbvax.Berkeley.EDU>
Fri, 30 Jul 1982 06:21:53 +0000 (22:21 -0800)
SCCS-vsn: usr.bin/tip/tip.c 4.12

usr/src/usr.bin/tip/tip.c

index ece27c6..621dd9e 100644 (file)
@@ -1,4 +1,4 @@
-/*     tip.c   4.11    81/12/16        */
+/*     tip.c   4.12    82/07/29        */
 
 /*
  * tip - UNIX link to other systems
 
 /*
  * tip - UNIX link to other systems
@@ -69,6 +69,8 @@ main(argc, argv)
                }
        }
 
                }
        }
 
+       if (system == NOSTR)
+               goto notnumber;
        for (p = system; *p; p++)
                if (isalpha(*p))
                        goto notnumber;
        for (p = system; *p; p++)
                if (isalpha(*p))
                        goto notnumber;
@@ -316,6 +318,7 @@ speed(n)
 any(c, p)
        register char c, *p;
 {
 any(c, p)
        register char c, *p;
 {
+       if (p)
        while (*p)
                if (*p++ == c)
                        return(1);
        while (*p)
                if (*p++ == c)
                        return(1);