* [9fans] /n/sources/patch/acme-iounit
@ 2013-01-25 19:12 cinap_lenrek
0 siblings, 0 replies; only message in thread
From: cinap_lenrek @ 2013-01-25 19:12 UTC (permalink / raw)
To: 9fans
this patch is wrong. it changes fsysversion() which leaves
t.msize uninitialized.
static
Xfid*
fsysversion(Xfid *x, Fid*)
{
Fcall t;
if(x->msize < 256)
return respond(x, &t, "version: message size too small");
if(t.msize > Maxblock)
t.msize = Maxblock;
messagesize = t.msize + IOHDRSZ;
if(strncmp(x->version, "9P2000", 6) != 0)
return respond(x, &t, "unrecognized 9P version");
t.version = "9P2000";
return respond(x, &t, nil);
}
--
cinap
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-25 19:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-25 19:12 [9fans] /n/sources/patch/acme-iounit cinap_lenrek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).