mirror of https://github.com/0intro/wmii
Fix wmiir segfault on write.
This commit is contained in:
parent
19cf5edacd
commit
6e75d6c765
|
@ -176,7 +176,7 @@ ixp_client_write(IXPClient *c, unsigned int fid,
|
|||
c->fcall.fid = fid;
|
||||
c->fcall.offset = offset;
|
||||
c->fcall.count = count;
|
||||
memcpy(c->fcall.data, data, count);
|
||||
c->fcall.data = data;
|
||||
if(ixp_client_do_fcall(c) == -1)
|
||||
return -1;
|
||||
return c->fcall.count;
|
||||
|
|
Loading…
Reference in New Issue