diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-01 09:50:25 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-01 09:50:25 +0100 |
commit | bf9bada0c246ef96ee168e355b26e4dc67396ee4 (patch) | |
tree | b9eda5e982727fa0567c372e2d743f3411f620b2 /sys/src | |
parent | 95609d520e31f3f2262764b14b8016ca940af01d (diff) |
winwatch: put previous label contents in edit buffer for relabling
Diffstat (limited to 'sys/src')
-rw-r--r-- | sys/src/cmd/winwatch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/winwatch.c b/sys/src/cmd/winwatch.c index b54e40f63..d8feebbe9 100644 --- a/sys/src/cmd/winwatch.c +++ b/sys/src/cmd/winwatch.c @@ -241,8 +241,8 @@ label(Win w, Mouse m) char buf[512], fname[128]; int n, fd; - buf[0] = 0; - n = eenter("label?", buf, sizeof(buf), &m); + snprint(buf, sizeof(buf), "%s", w.label); + n = eenter(nil, buf, sizeof(buf), &m); if(n <= 0) return 0; sprint(fname, "/dev/wsys/%d/label", w.n); |