edge.strict_endians
yura 2006-11-17 22:51:29 +00:00
parent 18dec0543d
commit b33658bc61
2 changed files with 2 additions and 2 deletions

View File

@ -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. */

View File

@ -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;