From 0f6a36936d24245def507e0ab554fc0ce4762a39 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 28 Jun 2010 11:54:55 -0400 Subject: [PATCH] Fix fs.c bug introduced in revision 9d31d13386b8. Closes issue #199. --- cmd/wmii/fs.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/wmii/fs.c b/cmd/wmii/fs.c index 95795ff4..049d8cd4 100644 --- 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')