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)
commitb0f6c7757ff6565314d49f69fe45427c6bbda8d7 (patch)
tree5b740350a78c09da7030ef98e755f1ff66883caf /generic
parent6db610bb79fd5283c600f956e518fcafb974ae8e (diff)
parent287331b62e1a63ddf1a687ca6f4679cc0ba053ea (diff)
downloadtk-b0f6c7757ff6565314d49f69fe45427c6bbda8d7.zip
tk-b0f6c7757ff6565314d49f69fe45427c6bbda8d7.tar.gz
tk-b0f6c7757ff6565314d49f69fe45427c6bbda8d7.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 */