diff options
author | Stef Walter <stef@thewalter.net> | 2004-05-07 01:45:49 +0000 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2004-05-07 01:45:49 +0000 |
commit | 4297404391e6d828d71306f7402ba1cdd05297aa (patch) | |
tree | 41efac068d7dff03c061fad9b75e83bf36f9653c /src/unicode.c | |
parent | e0f1ee22b9aae014c8dcdf1ba98bbdaffb716b0d (diff) |
- Fixed attribute List problems.
- Super fragmented MFTs work
- Ignore compressed and encrypted files
- Simplified memory management.
- Skip simple files
- Win32 compatibility work
Diffstat (limited to 'src/unicode.c')
-rw-r--r-- | src/unicode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/unicode.c b/src/unicode.c index b715a47..a2dcacb 100644 --- a/src/unicode.c +++ b/src/unicode.c @@ -19,8 +19,7 @@ char* unicode_transcode16to8(const ntfs_char* src, size_t len) /* Allocate 1.25 times the length initially */ alloc = len + (len / 4) + 1; - ret = (char*)malloc(alloc * sizeof(char)); - if(!ret) return NULL; + ret = (char*)mallocf(alloc * sizeof(char)); c = src; e = c + len; @@ -31,8 +30,7 @@ char* unicode_transcode16to8(const ntfs_char* src, size_t len) if(pos + 4 >= alloc) { alloc += (len / 2) + 1; - if(!(ret = (char*)reallocf(ret, alloc * sizeof(char)))) - return NULL; + ret = (char*)reallocf(ret, alloc * sizeof(char)); } /* Encode as one character */ |