aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/tapefs/v10fs.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-05-10 13:35:19 -0400
committerRuss Cox <rsc@swtch.com>2008-05-10 13:35:19 -0400
commitada24b4005504a9cc8035987cf5175940ae568a7 (patch)
tree51def5fcbc79322c17ff8eb56c3734dc5a5d7060 /src/cmd/tapefs/v10fs.c
parent77809fb0cc7c9ff07f0ecd319240c8e3ee2c9528 (diff)
downloadplan9port-ada24b4005504a9cc8035987cf5175940ae568a7.tar.gz
plan9port-ada24b4005504a9cc8035987cf5175940ae568a7.tar.bz2
plan9port-ada24b4005504a9cc8035987cf5175940ae568a7.zip
misc: array bounds fixes that gcc finds (John Gosset)
Diffstat (limited to 'src/cmd/tapefs/v10fs.c')
-rw-r--r--src/cmd/tapefs/v10fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/tapefs/v10fs.c b/src/cmd/tapefs/v10fs.c
index a2f546cd..c2875b84 100644
--- a/src/cmd/tapefs/v10fs.c
+++ b/src/cmd/tapefs/v10fs.c
@@ -84,7 +84,7 @@ popdir(Ram *r)
continue;
f = iget(ino);
strncpy(name, dp->name, VNAMELEN);
- name[VNAMELEN+1] = '\0';
+ name[VNAMELEN] = '\0';
f.name = name;
popfile(r, f);
}