diff options
author | rsc <devnull@localhost> | 2005-11-21 20:42:52 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-11-21 20:42:52 +0000 |
commit | 9e2f1d9bf4c3ce413953b17fa7605b49322d1ace (patch) | |
tree | 0fa8a0b6d60628738c73e20464ae468f34b44b84 /src/lib9 | |
parent | 86c2ab2caf5eb4742e7cd227e6d29fc1dc74d855 (diff) | |
download | plan9port-9e2f1d9bf4c3ce413953b17fa7605b49322d1ace.tar.gz plan9port-9e2f1d9bf4c3ce413953b17fa7605b49322d1ace.tar.bz2 plan9port-9e2f1d9bf4c3ce413953b17fa7605b49322d1ace.zip |
9P2000.u fixes (Lucho Ionkov)
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/convS2M.c | 2 | ||||
-rw-r--r-- | src/lib9/fcallfmt.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib9/convS2M.c b/src/lib9/convS2M.c index c004babc..b59d95b4 100644 --- a/src/lib9/convS2M.c +++ b/src/lib9/convS2M.c @@ -211,7 +211,7 @@ convS2Mu(Fcall *f, uchar *ap, uint nap, int dotu) uchar *p; uint i, size; - size = sizeS2M(f); + size = sizeS2Mu(f, dotu); if(size == 0) return 0; if(size > nap) diff --git a/src/lib9/fcallfmt.c b/src/lib9/fcallfmt.c index fef779d8..81980136 100644 --- a/src/lib9/fcallfmt.c +++ b/src/lib9/fcallfmt.c @@ -124,7 +124,7 @@ fcallfmt(Fmt *fmt) break; case Rstat: p = seprint(buf, e, "Rstat tag %ud ", tag); - if(f->nstat > sizeof tmp) + if(f->stat == nil || f->nstat > sizeof tmp) seprint(p, e, " stat(%d bytes)", f->nstat); else{ d = (Dir*)tmp; @@ -135,7 +135,7 @@ fcallfmt(Fmt *fmt) break; case Twstat: /* 126 */ p = seprint(buf, e, "Twstat tag %ud fid %ud", tag, fid); - if(f->nstat > sizeof tmp) + if(f->stat == nil || f->nstat > sizeof tmp) seprint(p, e, " stat(%d bytes)", f->nstat); else{ d = (Dir*)tmp; |