From ae5c51060cef32ce78be68dd43004933ff8aebd8 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 27 Oct 2009 04:35:34 +0000 Subject: [PATCH] bump the ratio buffer size to 12, to be on the safe side --- macosx/NSStringAdditions.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/NSStringAdditions.m b/macosx/NSStringAdditions.m index d06c8fa4d..d300ba967 100644 --- a/macosx/NSStringAdditions.m +++ b/macosx/NSStringAdditions.m @@ -103,7 +103,7 @@ if (ratio == TR_RATIO_NA) return NSLocalizedString(@"N/A", "No Ratio"); - char buf[8]; + char buf[12]; return [NSString stringWithUTF8String: tr_strratio(buf, sizeof(buf), ratio, "\xE2\x88\x9E")]; }