allocate much less memory for the ratio text

This commit is contained in:
Mitchell Livingston 2009-10-26 23:57:09 +00:00
parent e38c3c8165
commit 0ce3e4ac41
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@
if (ratio == TR_RATIO_NA)
return NSLocalizedString(@"N/A", "No Ratio");
char buf[50];
char buf[8];
return [NSString stringWithUTF8String: tr_strratio(buf, sizeof(buf), ratio, "\xE2\x88\x9E")];
}
@ -119,7 +119,7 @@
if (max > 0 && seconds >= (24 * 60 * 60))
{
NSUInteger days = remaining / (24 * 60 * 60);
const NSUInteger days = remaining / (24 * 60 * 60);
if (days == 1)
[timeArray addObject: NSLocalizedString(@"1 day", "time string")];
else