summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2009-06-26 17:24:32 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2009-06-26 17:24:32 +0000
commit72a6eea4142c81a2dd9c3d47c7176e3dc0b98b75 (patch)
tree8da41d228b3aceb2273f0c60810ed043b7cd68db /usr.bin
parent507a199df037c6f0928c55f8761c51c7935dba71 (diff)
explicitly print an empty value between two end_line() calls to prevent
garbage from being printed at certain window sizes. Noticed by deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/systat/nfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/systat/nfs.c b/usr.bin/systat/nfs.c
index 141783321e7..ad24b2c4dc0 100644
--- a/usr.bin/systat/nfs.c
+++ b/usr.bin/systat/nfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs.c,v 1.3 2009/06/26 06:39:47 jasper Exp $ */
+/* $OpenBSD: nfs.c,v 1.4 2009/06/26 17:24:31 canacar Exp $ */
/*
* Copyright (c) 2009 Jasper Lievisse Adriaanse <jasper@openbsd.org>
@@ -436,7 +436,8 @@ print_server(void)
nfsstats.srvrpccnt[NFSPROC_COMMIT]);
end_line();
- /* The following end_line() creates two seperate blocks on the screen */
+ /* This creates an empty space on screen to separate the two blocks */
+ print_fld_str(FLD_NFS_S_RPC_COUNTS, "");
end_line();
print_fld_str(FLD_NFS_S_RPC_COUNTS, "Ret-Failed");