summaryrefslogtreecommitdiff
path: root/usr.bin/jot/jot.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 18:33:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 18:33:41 +0000
commit8852a4e96620349bdbb8b1910914433eb4ae5b23 (patch)
tree8aabaeff9d22d74677315ee10eb32a73b4d99e72 /usr.bin/jot/jot.c
parentadc065fecc3a4acab48ac4ba942d8d0e1ae26a0b (diff)
strlcat
Diffstat (limited to 'usr.bin/jot/jot.c')
-rw-r--r--usr.bin/jot/jot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c
index 34fb117e0cb..1dd3b5e2bcf 100644
--- a/usr.bin/jot/jot.c
+++ b/usr.bin/jot/jot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jot.c,v 1.9 2002/02/16 21:27:47 millert Exp $ */
+/* $OpenBSD: jot.c,v 1.10 2002/05/29 18:33:38 deraadt Exp $ */
/* $NetBSD: jot.c,v 1.3 1994/12/02 20:29:43 pk Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)jot.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: jot.c,v 1.9 2002/02/16 21:27:47 millert Exp $";
+static char rcsid[] = "$OpenBSD: jot.c,v 1.10 2002/05/29 18:33:38 deraadt Exp $";
#endif /* not lint */
/*
@@ -362,7 +362,7 @@ getformat()
} else if (!*(p+1)) {
if (sz <= 0)
errx(1, "-w word too long");
- strcat(format, "%"); /* cannot end in single '%' */
+ strlcat(format, "%", sizeof format); /* cannot end in single '%' */
} else {
for (; *p && !isalpha(*p); p++)
/* Certain nonalphanumerics we can't allow */