aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/mail
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-21 20:46:49 +0000
committerrsc <devnull@localhost>2006-02-21 20:46:49 +0000
commit95409400f71c426d4ef5811f5dbdf1c0778464f5 (patch)
tree4443f8ea9f57b6fe0f33949d0dba65d4f9ce340f /src/cmd/acme/mail
parentc42a1d3d6168df56f966ea1f3ba3ef39ebbff4e4 (diff)
downloadplan9port-95409400f71c426d4ef5811f5dbdf1c0778464f5.tar.gz
plan9port-95409400f71c426d4ef5811f5dbdf1c0778464f5.tar.bz2
plan9port-95409400f71c426d4ef5811f5dbdf1c0778464f5.zip
events buffer need not end in NUL
Diffstat (limited to 'src/cmd/acme/mail')
-rw-r--r--src/cmd/acme/mail/mesg.c2
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;