diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-25 21:40:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-25 21:40:53 +0000 |
commit | 157689c223629defe85952d0c5498d4e253df604 (patch) | |
tree | ad1f45996c8a1e2b2b703972290bb59355206601 | |
parent | 028fc28eab0d3cdaea5f86e14279481d0b1f8b98 (diff) |
comment fix
-rw-r--r-- | usr.bin/top/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/utils.c b/usr.bin/top/utils.c index 3563f74d52e..8bd3c3edd7f 100644 --- a/usr.bin/top/utils.c +++ b/usr.bin/top/utils.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utils.c,v 1.6 2002/07/15 17:20:36 deraadt Exp $ */ +/* $OpenBSD: utils.c,v 1.7 2003/04/25 21:40:52 deraadt Exp $ */ /* * Top users/processes display for Unix @@ -371,7 +371,7 @@ time_t seconds; snprintf(result, sizeof(result), "%5.1fH", (double)seconds / (double)(60l * 60l)); - /* It is possible that the sprintf took more than 6 characters. + /* It is possible that the snprintf took more than 6 characters. If so, then the "H" appears as result[6]. If not, then there is a \0 in result[6]. Either way, it is safe to step on. */ |