aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/mail/mesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/acme/mail/mesg.c')
-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;