From f9669960a1db7037ebc43d6575ef2ab7a16ff393 Mon Sep 17 00:00:00 2001 From: mrwastl Date: Wed, 25 May 2011 00:05:54 +0200 Subject: another bug fix for DefaultBackgroundColor/DefaultForegroundColor --- skinconfig.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/skinconfig.c b/skinconfig.c index 46fced3..0a28573 100644 --- a/skinconfig.c +++ b/skinconfig.c @@ -739,14 +739,14 @@ GLCD::cType cGraphLCDSkinConfig::GetToken(const GLCD::tSkinToken & Token) } case tokDefaultForegroundColor: { - char buffer[9]; - snprintf(buffer, 8, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetForegroundColor())); + char buffer[11]; + snprintf(buffer, 10, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetForegroundColor())); return buffer; } case tokDefaultBackgroundColor: { - char buffer[5]; - snprintf(buffer, 8, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetBackgroundColor())); + char buffer[11]; + snprintf(buffer, 10, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetBackgroundColor())); return buffer; } default: -- cgit v1.2.3