=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/talk/get_names.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/talk/get_names.c 1996/06/26 05:40:22 1.2 --- src/usr.bin/talk/get_names.c 1997/01/17 07:13:28 1.3 *************** *** 1,4 **** ! /* $OpenBSD: get_names.c,v 1.2 1996/06/26 05:40:22 deraadt Exp $ */ /* $NetBSD: get_names.c,v 1.4 1994/12/09 02:14:16 jtc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: get_names.c,v 1.3 1997/01/17 07:13:28 millert Exp $ */ /* $NetBSD: get_names.c,v 1.4 1994/12/09 02:14:16 jtc Exp $ */ /* *************** *** 38,44 **** #if 0 static char sccsid[] = "@(#)get_names.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: get_names.c,v 1.2 1996/06/26 05:40:22 deraadt Exp $"; #endif /* not lint */ #include --- 38,44 ---- #if 0 static char sccsid[] = "@(#)get_names.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: get_names.c,v 1.3 1997/01/17 07:13:28 millert Exp $"; #endif /* not lint */ #include *************** *** 50,56 **** char *getlogin(); char *ttyname(); - char *rindex(); extern CTL_MSG msg; /* --- 50,55 ---- *************** *** 88,94 **** my_machine_name = hostname; /* check for, and strip out, the machine name of the target */ names = strdup(argv[1]); ! for (cp = names; *cp && !index("@:!.", *cp); cp++) ; if (*cp == '\0') { /* this is a local to local talk */ --- 87,93 ---- my_machine_name = hostname; /* check for, and strip out, the machine name of the target */ names = strdup(argv[1]); ! for (cp = names; *cp && !strchr("@:!.", *cp); cp++) ; if (*cp == '\0') { /* this is a local to local talk */