Important bugfix for ntfs_mbstoucs_libntfscompat: Typo in memcpy operation led to the wrong data being copied!

edge.strict_endians
Erik Larsson 2010-12-09 12:13:22 +01:00
parent 6922b7c8d0
commit 9c581432cb
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ static __inline__ int ntfs_mbstoucs_libntfscompat(const char *ins,
if(tmpstr_len >= 0) {
/* The extra character is the \0 terminator. */
memcpy(*outs, ins,
memcpy(*outs, tmpstr,
sizeof(ntfschar)*(tmpstr_len + 1));
}