commit 0f6a36936d24245def507e0ab554fc0ce4762a39
parent 7669688f3fd2a5a2f7811f49e2e4b99a30d61bf9
Author: Kris Maglione <kris@suckless.org>
Date: Mon, 28 Jun 2010 11:54:55 -0400
Fix fs.c bug introduced in revision 9d31d13386b8. Closes issue #199.
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/cmd/wmii/fs.c b/cmd/wmii/fs.c
@@ -505,7 +505,8 @@ fs_write(Ixp9Req *r) {
}
else if(t->buffer && t->max)
ixp_srv_writebuf(r, (char*[]){ structptr(f->p.ref, char, t->buffer) },
- t->size ? structptr(f->p.ref, uint, t->size) : nil,
+ t->size ? structptr(f->p.ref, uint, t->size)
+ : (uint[]){ strlen(structptr(f->p.ref, char, t->buffer)) },
t->max);
else if(t->buffer)
ixp_srv_writebuf(r, structptr(f->p.ref, char*, t->buffer),
@@ -523,10 +524,7 @@ done:
update_class(f->p.client);
break;
case FsFCtags:
- ixp_srv_data2cstring(r);
- client_applytags(f->p.client, r->ifcall.io.data);
- r->ofcall.io.count = r->ifcall.io.count;
- ixp_respond(r, nil);
+ client_applytags(f->p.client, f->p.client->tags);
break;
case FsFEvent:
if(r->ifcall.io.data[r->ifcall.io.count-1] == '\n')