summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-26 12:34:11 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-26 12:34:11 (GMT)
commita7ac8c14d8e03ad6b0d2694990b710157a0c90c8 (patch)
tree5b740350a78c09da7030ef98e755f1ff66883caf /generic
parenta7c65dfb59a48afb0ed95322f9ba7ad86790381a (diff)
parentbaf758c7efbf9bfcf471992a5090a5f360eeaec4 (diff)
downloadtk-a7ac8c14d8e03ad6b0d2694990b710157a0c90c8.zip
tk-a7ac8c14d8e03ad6b0d2694990b710157a0c90c8.tar.gz
tk-a7ac8c14d8e03ad6b0d2694990b710157a0c90c8.tar.bz2
fix scoping of buf (introduced with fix for [Bug 2809525])
Diffstat (limited to 'generic')
-rw-r--r--generic/tkColor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkColor.c b/generic/tkColor.c
index cafaaaa..1111c51 100644
--- a/generic/tkColor.c
+++ b/generic/tkColor.c
@@ -809,8 +809,8 @@ TkParseColor(
const char *name, /* String to be parsed */
XColor *color)
{
+ char buf[14];
if (*name == '#') {
- char buf[14];
buf[0] = '#'; buf[13] = '\0';
if (!*(++name) || !*(++name) || !*(++name)) {
/* Not at least 3 hex digits, so invalid */