diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-26 12:34:11 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-26 12:34:11 (GMT) |
commit | b0f6c7757ff6565314d49f69fe45427c6bbda8d7 (patch) | |
tree | 5b740350a78c09da7030ef98e755f1ff66883caf /generic | |
parent | 6db610bb79fd5283c600f956e518fcafb974ae8e (diff) | |
parent | 287331b62e1a63ddf1a687ca6f4679cc0ba053ea (diff) | |
download | tk-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.c | 2 |
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 */ |