diff options
author | rsc <devnull@localhost> | 2006-02-21 20:46:49 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-02-21 20:46:49 +0000 |
commit | 95409400f71c426d4ef5811f5dbdf1c0778464f5 (patch) | |
tree | 4443f8ea9f57b6fe0f33949d0dba65d4f9ce340f /src/cmd/acme/mail/mesg.c | |
parent | c42a1d3d6168df56f966ea1f3ba3ef39ebbff4e4 (diff) | |
download | plan9port-95409400f71c426d4ef5811f5dbdf1c0778464f5.tar.gz plan9port-95409400f71c426d4ef5811f5dbdf1c0778464f5.tar.bz2 plan9port-95409400f71c426d4ef5811f5dbdf1c0778464f5.zip |
events buffer need not end in NUL
Diffstat (limited to 'src/cmd/acme/mail/mesg.c')
-rw-r--r-- | src/cmd/acme/mail/mesg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/acme/mail/mesg.c b/src/cmd/acme/mail/mesg.c index 9406b799..2beedb05 100644 --- a/src/cmd/acme/mail/mesg.c +++ b/src/cmd/acme/mail/mesg.c @@ -346,7 +346,7 @@ readfile(char *dir, char *name, int *np) len = d->length; free(d); data = emalloc(len+1); - fsread(fid, data, len); + len = fsreadn(fid, data, len); fsclose(fid); if(np != nil) *np = len; |