wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit fb813f2bc1567590b8ce05b43dd347c082d2d5c1
parent 94ec2ffc74ee33abf1180e3f32f56cfed43bf56c
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Fri, 24 Mar 2006 15:17:50 +0100

rejecting writing empty tags


Diffstat:
cmd/wm/fs.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/wm/fs.c b/cmd/wm/fs.c @@ -1220,7 +1220,7 @@ xwrite(IXPConn *c, Fcall *fcall) case FsFtags: if(m->qid.dir_type == FsDroot) return Enoperm; - if(fcall->count > sizeof(buf)) + if(!fcall->count || (fcall->count > sizeof(buf))) return Ebadvalue; memcpy(buf, fcall->data, fcall->count); buf[fcall->count] = 0;