Changes by: uvman
Update of /cvsroot/linux-ntfs/ntfsprogs/libntfs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16747/libntfs
Modified Files:
unistr.c
Log Message:
Fix a nasty bug in unistr.c
Index: unistr.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/unistr.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -p -r1.21 -r1.22
--- unistr.c 28 Jul 2005 21:20:23 -0000 1.21
+++ unistr.c 6 Aug 2005 12:37:30 -0000 1.22
@@ -524,7 +524,7 @@ int ntfs_mbstoucs(const char *ins, ntfsc
#else
mbtowc(NULL, NULL, 0);
#endif
- for (i = o = cnt = 0; o < ins_len; i += cnt, o++) {
+ for (i = o = cnt = 0; i < ins_size; i += cnt, o++) {
/* Reallocate memory if necessary or abort. */
if (o >= ucs_len) {
ntfschar *tc;
|