From 7f12043d872c347c6686f501319a7a1b60625fb7 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 25 Apr 2003 23:58:37 +0000 Subject: comment --- usr.bin/top/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/top/utils.c b/usr.bin/top/utils.c index 8bd3c3edd7f..beef9df2894 100644 --- a/usr.bin/top/utils.c +++ b/usr.bin/top/utils.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utils.c,v 1.7 2003/04/25 21:40:52 deraadt Exp $ */ +/* $OpenBSD: utils.c,v 1.8 2003/04/25 23:58:36 deraadt Exp $ */ /* * Top users/processes display for Unix @@ -400,7 +400,7 @@ time_t seconds; * Compromise time. We need to return a string, but we don't want the * caller to have to worry about freeing a dynamically allocated string. * Unfortunately, we can't just return a pointer to a static area as one - * of the common uses of this function is in a large call to sprintf where + * of the common uses of this function is in a large call to snprintf where * it might get invoked several times. Our compromise is to maintain an * array of strings and cycle thru them with each invocation. We make the * array large enough to handle the above mentioned case. The constant -- cgit v1.2.3