Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | fix scoping of buf (introduced with fix for [Bug 2809525]) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | core-8-5-branch |
Files: | files | file ages | folders |
SHA1: |
74aab9098c3fc27830322d895aa5d96d |
User & Date: | jan.nijtmans 2012-03-26 12:34:11 |
Context
2012-03-30
| ||
15:12 | [Bug 3511806] Compiler checks too early (autoconf still to be run!) check-in: 6decce9e user: jan.nijtmans tags: core-8-5-branch | |
2012-03-26
| ||
12:35 | fix for scoping of buf (introduced with fix for [Bug 2809525]) check-in: e8d270f5 user: jan.nijtmans tags: trunk | |
12:34 | fix scoping of buf (introduced with fix for [Bug 2809525]) check-in: 74aab909 user: jan.nijtmans tags: core-8-5-branch | |
12:32 | fix scoping of buf (introduced with fix for [Bug 2809525] check-in: bde05b36 user: jan.nijtmans tags: core-8-4-branch | |
2012-03-21
| ||
22:22 | [Bug 2809525] Abort on overlong color name check-in: 89ebf1b8 user: jan.nijtmans tags: core-8-5-branch | |
Changes
Changes to generic/tkColor.c.
︙ | ︙ | |||
805 806 807 808 809 810 811 | Status TkParseColor( Display *display, /* The display */ Colormap map, /* Color map */ const char *name, /* String to be parsed */ XColor *color) { | < | > | 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 | Status TkParseColor( Display *display, /* The display */ Colormap map, /* Color map */ const char *name, /* String to be parsed */ XColor *color) { char buf[14]; if (*name == '#') { buf[0] = '#'; buf[13] = '\0'; if (!*(++name) || !*(++name) || !*(++name)) { /* Not at least 3 hex digits, so invalid */ return 0; } else if (!*(++name)) { /* Exactly 3 hex digits */ buf[9] = buf[10] = buf[11] = buf[12] = *(--name); |
︙ | ︙ |