summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-26 12:35:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-26 12:35:31 (GMT)
commitf5388f87a1561b44ad0b3ceaefa06ba58125adbe (patch)
tree4ac3639dd703b7110cb7235e4b29947380108564
parentf7b1124c07e651cda35446f85222b3001bf1808c (diff)
parentb0f6c7757ff6565314d49f69fe45427c6bbda8d7 (diff)
downloadtk-f5388f87a1561b44ad0b3ceaefa06ba58125adbe.zip
tk-f5388f87a1561b44ad0b3ceaefa06ba58125adbe.tar.gz
tk-f5388f87a1561b44ad0b3ceaefa06ba58125adbe.tar.bz2
fix for scoping of buf (introduced with fix for [Bug 2809525])
-rw-r--r--generic/tkColor.c2
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 */