cleanups
parent
18dec0543d
commit
b33658bc61
|
@ -522,7 +522,7 @@ ntfs_inode *ntfs_pathname_to_inode(ntfs_volume *vol, ntfs_inode *parent,
|
|||
|
||||
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. */
|
||||
|
|
|
@ -727,7 +727,7 @@ ntfschar *ntfs_str2ucs(const char *s, int *len)
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue