diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-04 21:50:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-04 21:50:01 +0000 |
commit | 502495f37efd945d1d9a38bdbf92d8712c0bc196 (patch) | |
tree | 17195997987d531765e3e28b8fbb454cf8af7d15 /usr.bin/tip | |
parent | 3b94f8a0d302e3a08fd645b248baa4aa5dda7d77 (diff) |
some easy string fixes; tdeval ok
Diffstat (limited to 'usr.bin/tip')
-rw-r--r-- | usr.bin/tip/aculib/biz22.c | 8 | ||||
-rw-r--r-- | usr.bin/tip/aculib/biz31.c | 6 | ||||
-rw-r--r-- | usr.bin/tip/aculib/courier.c | 6 | ||||
-rw-r--r-- | usr.bin/tip/aculib/hayes.c | 6 | ||||
-rw-r--r-- | usr.bin/tip/aculib/t3000.c | 6 | ||||
-rw-r--r-- | usr.bin/tip/aculib/ventel.c | 6 |
6 files changed, 19 insertions, 19 deletions
diff --git a/usr.bin/tip/aculib/biz22.c b/usr.bin/tip/aculib/biz22.c index b3f2a4acc01..1c8020c72a1 100644 --- a/usr.bin/tip/aculib/biz22.c +++ b/usr.bin/tip/aculib/biz22.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biz22.c,v 1.8 2002/05/07 06:56:50 hugh Exp $ */ +/* $OpenBSD: biz22.c,v 1.9 2003/04/04 21:50:00 deraadt Exp $ */ /* $NetBSD: biz22.c,v 1.6 1997/02/11 09:24:11 mrg Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)biz22.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: biz22.c,v 1.8 2002/05/07 06:56:50 hugh Exp $"; +static const char rcsid[] = "$OpenBSD: biz22.c,v 1.9 2003/04/04 21:50:00 deraadt Exp $"; #endif /* not lint */ #include "tip.h" @@ -74,7 +74,7 @@ biz_dialer(num, mod) printf("can't initialize bizcomp..."); return (0); } - (void)strcpy(cbuf, "\02.\r"); + (void)strlcpy(cbuf, "\02.\r", sizeof cbuf); cbuf[1] = *mod; if (cmd(cbuf)) { printf("can't set dialing mode..."); @@ -98,7 +98,7 @@ biz_dialer(num, mod) if (timeout) { char line[80]; - (void)sprintf(line, "%ld second dial timeout", + (void)snprintf(line, sizeof line, "%ld second dial timeout", number(value(DIALTIMEOUT))); logent(value(HOST), num, "biz1022", line); } diff --git a/usr.bin/tip/aculib/biz31.c b/usr.bin/tip/aculib/biz31.c index 5522d652aed..f0e3874cae3 100644 --- a/usr.bin/tip/aculib/biz31.c +++ b/usr.bin/tip/aculib/biz31.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biz31.c,v 1.6 2001/10/24 18:38:58 millert Exp $ */ +/* $OpenBSD: biz31.c,v 1.7 2003/04/04 21:50:00 deraadt Exp $ */ /* $NetBSD: biz31.c,v 1.5 1997/02/11 09:24:14 mrg Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)biz31.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: biz31.c,v 1.6 2001/10/24 18:38:58 millert Exp $"; +static char rcsid[] = "$OpenBSD: biz31.c,v 1.7 2003/04/04 21:50:00 deraadt Exp $"; #endif /* not lint */ #include "tip.h" @@ -91,7 +91,7 @@ biz_dialer(num, mod) if (timeout) { char line[80]; - (void)sprintf(line, "%ld second dial timeout", + (void)snprintf(line, sizeof line, "%ld second dial timeout", number(value(DIALTIMEOUT))); logent(value(HOST), num, "biz", line); } diff --git a/usr.bin/tip/aculib/courier.c b/usr.bin/tip/aculib/courier.c index 942b2dfb702..91811c76edf 100644 --- a/usr.bin/tip/aculib/courier.c +++ b/usr.bin/tip/aculib/courier.c @@ -1,4 +1,4 @@ -/* $OpenBSD: courier.c,v 1.11 2002/05/07 06:56:50 hugh Exp $ */ +/* $OpenBSD: courier.c,v 1.12 2003/04/04 21:50:00 deraadt Exp $ */ /* $NetBSD: courier.c,v 1.7 1997/02/11 09:24:16 mrg Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)courier.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: courier.c,v 1.11 2002/05/07 06:56:50 hugh Exp $"; +static const char rcsid[] = "$OpenBSD: courier.c,v 1.12 2003/04/04 21:50:00 deraadt Exp $"; #endif /* not lint */ /* @@ -109,7 +109,7 @@ badsynch: connected = cour_connect(); #ifdef ACULOG if (timeout) { - (void)sprintf(line, "%ld second dial timeout", + (void)snprintf(line, sizeof line, "%ld second dial timeout", number(value(DIALTIMEOUT))); logent(value(HOST), num, "cour", line); } diff --git a/usr.bin/tip/aculib/hayes.c b/usr.bin/tip/aculib/hayes.c index e42e797b9f9..d333a814f87 100644 --- a/usr.bin/tip/aculib/hayes.c +++ b/usr.bin/tip/aculib/hayes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hayes.c,v 1.9 2002/05/07 06:56:50 hugh Exp $ */ +/* $OpenBSD: hayes.c,v 1.10 2003/04/04 21:50:00 deraadt Exp $ */ /* $NetBSD: hayes.c,v 1.6 1997/02/11 09:24:17 mrg Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)hayes.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: hayes.c,v 1.9 2002/05/07 06:56:50 hugh Exp $"; +static const char rcsid[] = "$OpenBSD: hayes.c,v 1.10 2003/04/04 21:50:00 deraadt Exp $"; #endif /* not lint */ /* @@ -136,7 +136,7 @@ hay_dialer(num, acu) tcflush(FD, TCIOFLUSH); #ifdef ACULOG if (timeout) { - (void)sprintf(line, "%ld second dial timeout", + (void)snprintf(line, sizeof line, "%ld second dial timeout", number(value(DIALTIMEOUT))); logent(value(HOST), num, "hayes", line); } diff --git a/usr.bin/tip/aculib/t3000.c b/usr.bin/tip/aculib/t3000.c index c3b8cb6595a..3a4ffded4c2 100644 --- a/usr.bin/tip/aculib/t3000.c +++ b/usr.bin/tip/aculib/t3000.c @@ -1,4 +1,4 @@ -/* $OpenBSD: t3000.c,v 1.10 2002/05/07 06:56:50 hugh Exp $ */ +/* $OpenBSD: t3000.c,v 1.11 2003/04/04 21:50:00 deraadt Exp $ */ /* $NetBSD: t3000.c,v 1.5 1997/02/11 09:24:18 mrg Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)t3000.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: t3000.c,v 1.10 2002/05/07 06:56:50 hugh Exp $"; +static const char rcsid[] = "$OpenBSD: t3000.c,v 1.11 2003/04/04 21:50:00 deraadt Exp $"; #endif /* not lint */ /* @@ -109,7 +109,7 @@ badsynch: connected = t3000_connect(); #ifdef ACULOG if (timeout) { - (void)sprintf(line, "%ld second dial timeout", + (void)snprintf(line, sizeof line, "%ld second dial timeout", number(value(DIALTIMEOUT))); logent(value(HOST), num, "t3000", line); } diff --git a/usr.bin/tip/aculib/ventel.c b/usr.bin/tip/aculib/ventel.c index 54ed6873f89..7930d946863 100644 --- a/usr.bin/tip/aculib/ventel.c +++ b/usr.bin/tip/aculib/ventel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ventel.c,v 1.8 2002/05/07 06:56:50 hugh Exp $ */ +/* $OpenBSD: ventel.c,v 1.9 2003/04/04 21:50:00 deraadt Exp $ */ /* $NetBSD: ventel.c,v 1.6 1997/02/11 09:24:21 mrg Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)ventel.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: ventel.c,v 1.8 2002/05/07 06:56:50 hugh Exp $"; +static const char rcsid[] = "$OpenBSD: ventel.c,v 1.9 2003/04/04 21:50:00 deraadt Exp $"; #endif /* not lint */ /* @@ -108,7 +108,7 @@ ven_dialer(num, acu) tcflush(FD, TCIOFLUSH); #ifdef ACULOG if (timeout) { - (void)sprintf(line, "%ld second dial timeout", + (void)snprintf(line, sizeof line, "%ld second dial timeout", number(value(DIALTIMEOUT))); logent(value(HOST), num, "ventel", line); } |