summaryrefslogtreecommitdiff
path: root/libexec/uucpd/uucpd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-22 06:35:45 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-22 06:35:45 +0000
commitcf6275b2c20125ad10de0b257adff3f946265e12 (patch)
treef3c7bbaf5ca24d9e17e60388318a5de9645dc8fe /libexec/uucpd/uucpd.c
parent3560c67cd3c2ef49b0fdf0beb609ba65462759e7 (diff)
a bunch more strcpy -> strlcpy and sprintf -> snprintf
Diffstat (limited to 'libexec/uucpd/uucpd.c')
-rw-r--r--libexec/uucpd/uucpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/uucpd/uucpd.c b/libexec/uucpd/uucpd.c
index 55935abda13..abbe2cac44d 100644
--- a/libexec/uucpd/uucpd.c
+++ b/libexec/uucpd/uucpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uucpd.c,v 1.21 2002/02/16 21:27:31 millert Exp $ */
+/* $OpenBSD: uucpd.c,v 1.22 2002/05/22 06:35:44 deraadt Exp $ */
/*
* Copyright (c) 1985 The Regents of the University of California.
@@ -44,7 +44,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)uucpd.c 5.10 (Berkeley) 2/26/91";*/
-static char rcsid[] = "$OpenBSD: uucpd.c,v 1.21 2002/02/16 21:27:31 millert Exp $";
+static char rcsid[] = "$OpenBSD: uucpd.c,v 1.22 2002/05/22 06:35:44 deraadt Exp $";
#endif /* not lint */
/*
@@ -306,7 +306,7 @@ struct sockaddr_in *sin;
wtmp = open(_PATH_WTMP, O_WRONLY|O_APPEND);
if (wtmp >= 0) {
/* hack, but must be unique and no tty line */
- (void) sprintf(line, "uucp%.4d", getpid());
+ (void) snprintf(line, sizeof line, "uucp%.4d", getpid());
SCPYN(utmp.ut_line, line);
SCPYN(utmp.ut_name, pw->pw_name);
SCPYN(utmp.ut_host, remotehost);