+2003-01-13 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+
+ * Released as version 1.11.
+
+ * ywho.c (LEFTSIZE): Forgot the old value of this constant when
+ changing design, causing incorrect truncation of long command lines.
+
2002-07-06 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
* Released as version 1.10.
+ywho (1.11) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Martin Mares <mj@atrey.karlin.mff.cuni.cz> Mon, 13 Jan 2003 18:46:57 +0100
+
ywho (1.10) unstable; urgency=low
* New upstream version.
/*
- * Extended `who' command, version 1.10.
+ * Extended `who' command, version 1.11.
*
- * (c) 1996--2002 Martin Mares <mj@ucw.cz>
+ * (c) 1996--2003 Martin Mares <mj@ucw.cz>
*
* This software may be freely distributed and used according to the terms
* of the GNU General Public License. See file COPYING in any of the GNU packages.
DIR *d;
struct dirent *e;
struct winsize win;
- unsigned cmdcols = 0;
-#define LEFTSIZE 29
+ unsigned cmdcols;
+#define LEFTSIZE 35
if (!ioctl(1, TIOCGWINSZ, &win) && win.ws_col >= LEFTSIZE + maxhost + 10 && win.ws_col < 1024)
cmdcols = win.ws_col;
- else cmdcols = 80;
+ else
+ cmdcols = 80;
cmdcols -= LEFTSIZE + maxhost;
if (d = opendir("/proc"))
{