Merge pull request #16 from tamasprezi/master

Fixed typo that caused crashes in BinaryDelta
This commit is contained in:
Kornel committed 2014-04-22 15:08:38 +01:00
commit 8a45304d55
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ NSString *temporaryFilename(NSString *base)
NSString *template = [NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.XXXXXXXXXX", base]];
char buffer[MAXPATHLEN];
strcpy(buffer, [template fileSystemRepresentation]);
return [NSString stringWithUTF8String:mkstemp(buffer)];
return [NSString stringWithUTF8String:mktemp(buffer)];
}
static void _hashOfBuffer(unsigned char *hash, const char* buffer, size_t bufferLength)