diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-26 12:35:31 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-26 12:35:31 (GMT) |
commit | b164c6cfda503ad9a271c81ab8f31357565ab9d3 (patch) | |
tree | 4ac3639dd703b7110cb7235e4b29947380108564 /generic/tkColor.c | |
parent | ea92b06db68f5c8092d262109b352f1b6e549e2a (diff) | |
parent | a7ac8c14d8e03ad6b0d2694990b710157a0c90c8 (diff) | |
download | tk-b164c6cfda503ad9a271c81ab8f31357565ab9d3.zip tk-b164c6cfda503ad9a271c81ab8f31357565ab9d3.tar.gz tk-b164c6cfda503ad9a271c81ab8f31357565ab9d3.tar.bz2 |
fix for scoping of buf (introduced with fix for [Bug 2809525])
Diffstat (limited to 'generic/tkColor.c')
-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 6a0ea7a..9383a92 100644 --- a/generic/tkColor.c +++ b/generic/tkColor.c @@ -835,8 +835,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 */ |