Fix wmiir segfault on write.

This commit is contained in:
Kris Maglione 2006-06-18 19:26:25 -04:00
parent 19cf5edacd
commit 6e75d6c765
1 changed files with 1 additions and 1 deletions

View File

@ -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;