summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--skinconfig.c8
1 files 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: