[hackers] [wmii] Fix fs.c bug introduced in revision 9d31d13386b8. Closes issue #199. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Mon, 28 Jun 2010 15:55:02 +0000 (UTC)

changeset: 2749:44a34e4e7272
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Mon Jun 28 11:54:55 2010 -0400
files: cmd/wmii/fs.c
description:
Fix fs.c bug introduced in revision 9d31d13386b8. Closes issue #199.

diff -r 039362e61361 -r 44a34e4e7272 cmd/wmii/fs.c
--- a/cmd/wmii/fs.c Sun Jun 27 22:51:40 2010 -0400
+++ b/cmd/wmii/fs.c Mon Jun 28 11:54:55 2010 -0400
@@ -505,7 +505,8 @@
                 }
                 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 @@
                 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')
Received on Mon Jun 28 2010 - 15:55:02 UTC

This archive was generated by hypermail 2.2.0 : Mon Jun 28 2010 - 16:00:09 UTC