summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-06-04 17:37:16 +0000
committerderaadt <deraadt@openbsd.org>2003-06-04 17:37:16 +0000
commitad8ffe7a630bae67d0ed19ae0021df608851e2f9 (patch)
treeb07c38152747d089b2ca9bbb5f0018596f0ab210
parentUpdate flex license from sourceforge version (is now 2-term BSD) (diff)
downloadwireguard-openbsd-ad8ffe7a630bae67d0ed19ae0021df608851e2f9.tar.xz
wireguard-openbsd-ad8ffe7a630bae67d0ed19ae0021df608851e2f9.zip
fix stdout line width handling; different from fix in 3289
-rw-r--r--usr.bin/rusers/rusers.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/rusers/rusers.c b/usr.bin/rusers/rusers.c
index f7979bc73e0..148eebe3015 100644
--- a/usr.bin/rusers/rusers.c
+++ b/usr.bin/rusers/rusers.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rusers.c,v 1.22 2003/06/03 01:52:41 millert Exp $ */
+/* $OpenBSD: rusers.c,v 1.23 2003/06/04 17:37:16 deraadt Exp $ */
/*
* Copyright (c) 2001, 2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -44,7 +44,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: rusers.c,v 1.22 2003/06/03 01:52:41 millert Exp $";
+static const char rcsid[] = "$OpenBSD: rusers.c,v 1.23 2003/06/04 17:37:16 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -149,7 +149,8 @@ main(int argc, char **argv)
termwidth = win.ws_col;
else
termwidth = 80;
- }
+ } else
+ termwidth = 80;
setlinebuf(stdout);
if (argc == optind) {