diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-06 18:48:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-06 18:48:16 +0000 |
commit | 9ad5a89d71e6258d23009dcb2b29d08560e511e3 (patch) | |
tree | e423ab7c550f34bf13ccaa7f7cb99ef2258f67b8 | |
parent | b25601fdead00d8212c3f004ab0bdefa099b837f (diff) |
a strlcat
-rw-r--r-- | usr.bin/top/version.c | 4 |
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); } |