summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/src/9/boot/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/boot/boot.c b/sys/src/9/boot/boot.c
index a8e08f91a..51daee7a0 100644
--- a/sys/src/9/boot/boot.c
+++ b/sys/src/9/boot/boot.c
@@ -22,7 +22,7 @@ main(int, char *argv[])
bind(root, "/", MAFTER);
buf[0] = '/';
- buf[1+read(open("/env/cputype", OREAD|OCEXEC), buf+1, sizeof buf - 5)] = '\0';
+ buf[1+read(open("/env/cputype", OREAD|OCEXEC), buf+1, sizeof buf - 6)] = '\0';
strcat(buf, bin);
bind(buf, bin, MAFTER);
bind("/rc/bin", bin, MAFTER);