=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tip/Attic/cu.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/tip/Attic/cu.c 1996/06/26 05:40:43 1.2 +++ src/usr.bin/tip/Attic/cu.c 1997/04/02 01:47:02 1.3 @@ -1,5 +1,5 @@ -/* $OpenBSD: cu.c,v 1.2 1996/06/26 05:40:43 deraadt Exp $ */ -/* $NetBSD: cu.c,v 1.3 1994/12/08 09:30:48 jtc Exp $ */ +/* $OpenBSD: cu.c,v 1.3 1997/04/02 01:47:02 millert Exp $ */ +/* $NetBSD: cu.c,v 1.5 1997/02/11 09:24:05 mrg Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)cu.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: cu.c,v 1.2 1996/06/26 05:40:43 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: cu.c,v 1.3 1997/04/02 01:47:02 millert Exp $"; #endif /* not lint */ #include "tip.h" @@ -109,7 +109,7 @@ * The "cu" host name is used to define the * attributes of the generic dialer. */ - (void)sprintf(sbuf, "cu%d", BR); + (void)snprintf(sbuf, sizeof(sbuf), "cu%d", BR); if ((i = hunt(sbuf)) == 0) { printf("all ports busy\n"); exit(3); @@ -124,7 +124,7 @@ user_uid(); vinit(); setparity("none"); - boolean(value(VERBOSE)) = 0; + setboolean(value(VERBOSE), 0); if (HW) ttysetup(speed(BR)); if (connect()) {