diff options
author | Yuri Pankov <yuripv@FreeBSD.org> | 2020-06-21 11:42:49 +0000 |
---|---|---|
committer | Yuri Pankov <yuripv@FreeBSD.org> | 2020-06-21 11:42:49 +0000 |
commit | 2d3725d62acbaca2fe84d43e8fd32ae9fb9a915b (patch) | |
tree | 1776f62a6bc3ddec3ad4f51adc55079cafa20350 /usr.bin/w | |
parent | 5ac2674278eb2ad7c6cdbb0926313dd82340b28e (diff) | |
download | src-2d3725d62acbaca2fe84d43e8fd32ae9fb9a915b.tar.gz src-2d3725d62acbaca2fe84d43e8fd32ae9fb9a915b.zip |
Notes
Diffstat (limited to 'usr.bin/w')
-rw-r--r-- | usr.bin/w/w.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 06da99f08660..916a77920160 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -438,8 +438,8 @@ main(int argc, char *argv[]) if (ptr == NULL) ptr = "-"; xo_open_instance("process-entry"); - xo_emit("\t\t{:process-id/%-9d/%d} {:command/%s}\n", - dkp->ki_pid, ptr); + xo_emit("\t\t{:process-id/%-9d/%d} " + "{:command/%hs}\n", dkp->ki_pid, ptr); xo_close_instance("process-entry"); } xo_close_list("process-entry"); @@ -460,7 +460,7 @@ main(int argc, char *argv[]) t = ep->utmp.ut_tv.tv_sec; longattime = pr_attime(&t, &now); longidle = pr_idle(ep->idle); - xo_emit("{:command/%.*s/%@*@s}\n", + xo_emit("{:command/%.*hs/%@*@hs}\n", argwidth - longidle - longattime, ep->args); |