Changes by: yura
Update of /cvs/linux-ntfs/ntfsprogs/libntfs
In directory delta357:/tmp/cvs-serv24317/libntfs
Modified Files:
dir.c unistr.c
Log Message:
cleanups
Index: dir.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/libntfs/dir.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -p -r1.76 -r1.77
--- dir.c 15 Nov 2006 23:15:17 -0000 1.76
+++ dir.c 17 Nov 2006 22:51:29 -0000 1.77
@@ -522,7 +522,7 @@ ntfs_inode *ntfs_pathname_to_inode(ntfs_
p = ascii;
/* Remove leading /'s. */
- while (p && *p && *p == PATH_SEP)
+ while (p && *p == PATH_SEP)
p++;
while (p && *p) {
/* Find the end of the first token. */
Index: unistr.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/libntfs/unistr.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -p -r1.37 -r1.38
--- unistr.c 1 Nov 2006 13:30:40 -0000 1.37
+++ unistr.c 17 Nov 2006 22:51:29 -0000 1.38
@@ -727,7 +727,7 @@ ntfschar *ntfs_str2ucs(const char *s, in
ntfs_log_perror("Couldn't convert '%s' to Unicode", s);
return NULL;
}
- if (*len > 0xff) {
+ if (*len > NTFS_MAX_NAME_LEN) {
free(ucs);
errno = ENAMETOOLONG;
return NULL;
|