lib9pclient: add support for 9P2000.u

This commit is contained in:
Russ Cox 2008-07-04 02:46:05 -04:00
parent ac5a97e6b3
commit 382ae73f24
5 changed files with 17 additions and 12 deletions

View file

@ -28,11 +28,11 @@ fsdirfwstat(CFid *fid, Dir *d)
int n, nn;
Fcall tx, rx;
n = sizeD2M(d);
n = sizeD2Mu(d, fid->fs->dotu);
a = malloc(n);
if(a == nil)
return -1;
nn = convD2M(d, a, n);
nn = convD2Mu(d, a, n, fid->fs->dotu);
if(n != nn){
werrstr("convD2M and sizeD2M disagree");
free(a);