summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-06 18:48:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-06 18:48:16 +0000
commit9ad5a89d71e6258d23009dcb2b29d08560e511e3 (patch)
treee423ab7c550f34bf13ccaa7f7cb99ef2258f67b8
parentb25601fdead00d8212c3f004ab0bdefa099b837f (diff)
a strlcat
-rw-r--r--usr.bin/top/version.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/version.c b/usr.bin/top/version.c
index 6bc9009ae08..5b1af4988a1 100644
--- a/usr.bin/top/version.c
+++ b/usr.bin/top/version.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: version.c,v 1.3 2002/07/15 17:20:36 deraadt Exp $ */
+/* $OpenBSD: version.c,v 1.4 2003/04/06 18:48:15 deraadt Exp $ */
/*
* Top users/processes display for Unix
@@ -41,7 +41,7 @@ char *version_string()
snprintf(version, sizeof(version), "%d.%d", VERSION, PATCHLEVEL);
#ifdef BETA
- strcat(version, BETA);
+ strlcat(version, BETA, sizeof version);
#endif
return(version);
}