diff options
Diffstat (limited to 'fs/ntfs/util.c')
-rw-r--r-- | fs/ntfs/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ntfs/util.c b/fs/ntfs/util.c index e0f9b2362..8f4fc6ca8 100644 --- a/fs/ntfs/util.c +++ b/fs/ntfs/util.c @@ -267,6 +267,8 @@ int ntfs_uni_strncmp(short int* a,short int *b,int n) return -1; if(b[i]<a[i]) return 1; + if (a[i] == 0) + return 0; } return 0; } @@ -282,6 +284,8 @@ int ntfs_ua_strncmp(short int* a,char* b,int n) return -1; if(b[i]<NTFS_GETU16(a+i)) return 1; + if (b[i] == 0) + return 0; } return 0; } |