projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh...
[powerpc.git]
/
fs
/
ntfs
/
inode.c
diff --git
a/fs/ntfs/inode.c
b/fs/ntfs/inode.c
index
074791c
..
b532a73
100644
(file)
--- a/
fs/ntfs/inode.c
+++ b/
fs/ntfs/inode.c
@@
-140,7
+140,7
@@
static int ntfs_init_locked_inode(struct inode *vi, ntfs_attr *na)
if (!ni->name)
return -ENOMEM;
memcpy(ni->name, na->name, i);
- ni->name[
i
] = 0;
+ ni->name[
na->name_len
] = 0;
}
return 0;
}