• R/O
  • HTTP
  • SSH
  • HTTPS

Tombo: Commit

TOMBO source code


Commit MetaInfo

Revisione5c165a7d9693fcc7dbe436e1687cae274700d04 (tree)
Time2012-04-12 22:45:42
AuthorHirami <tomohisa.hirami@nift...>
CommiterHirami

Log Message

FIX: ABEND when encrypting.

Change Summary

Incremental Difference

--- a/iOS/Tombo/Tombo/CryptCore.m
+++ b/iOS/Tombo/Tombo/CryptCore.m
@@ -225,7 +225,7 @@
225225
226226 + (NSData *)encrypt:(NSString *)key data:(NSData *)plain error:(NSError **)error {
227227 const char *plainByte = (const char *)[plain bytes];
228- NSUInteger n = strlen(plainByte);
228+ NSUInteger n = [plain length];
229229 NSUInteger nBlocks = (n + 7) / 8;
230230
231231 NSUInteger dataLen = 32 + nBlocks * 8;
--- a/iOS/Tombo/Tombo/PasswordManager.m
+++ b/iOS/Tombo/Tombo/PasswordManager.m
@@ -46,6 +46,7 @@
4646 [mismatch show];
4747 return NO;
4848 }
49+ self.password = pass1;
4950 }
5051
5152 [self resetTimer];
Show on old repository browser