diff options
Diffstat (limited to 'src/cmd/tapefs')
-rw-r--r-- | src/cmd/tapefs/32vfs.c | 2 | ||||
-rw-r--r-- | src/cmd/tapefs/v10fs.c | 2 | ||||
-rw-r--r-- | src/cmd/tapefs/v6fs.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/tapefs/32vfs.c b/src/cmd/tapefs/32vfs.c index adccd590..1d917f82 100644 --- a/src/cmd/tapefs/32vfs.c +++ b/src/cmd/tapefs/32vfs.c @@ -93,7 +93,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); } 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); } diff --git a/src/cmd/tapefs/v6fs.c b/src/cmd/tapefs/v6fs.c index 648c2128..74c6737c 100644 --- a/src/cmd/tapefs/v6fs.c +++ b/src/cmd/tapefs/v6fs.c @@ -85,7 +85,7 @@ popdir(Ram *r) continue; f = iget(ino); strncpy(name, dp->name, V6NAMELEN); - name[V6NAMELEN+1] = '\0'; + name[V6NAMELEN] = '\0'; f.name = name; popfile(r, f); } |