10.6 compatibility: Fix some new compiler warnings, and work around apparent regressions in NSTask and -stringByStandardizingPath.
5 // Created by Jens Alfke on 6/24/09.
6 // Copyright 2009 Jens Alfke. All rights reserved.
9 #import "NSData+Mnemonic.h"
13 @implementation NSData (Mnemonic)
15 - (NSString*) my_mnemonic {
16 NSMutableData *chars = [NSMutableData dataWithLength: 10*mn_words_required(self.length)];
19 int result = mn_encode((void*)self.bytes, self.length,
20 chars.mutableBytes, chars.length,
23 Warn(@"Mnemonic encoder failed: err=%i",result);
26 return [[[NSString alloc] initWithUTF8String: chars.mutableBytes] autorelease];