Commit | Line | Data |
---|---|---|
a56145e1 SW |
1 | Description: Avoid compilation error with gcc-4.4. |
2 | "const char* -> char*" conversion is fatal in that version | |
3 | Origin: vendor, https://bugs.launchpad.net/ubuntu/+source/kobodeluxe/+bug/461373 | |
4 | Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/kobodeluxe/+bug/461373 | |
5 | Bug-Debian: http://bugs.debian.org/552548 | |
6 | Forwarded: http://www.freelists.org/post/olofsonprojects/kobodlpatch-compile-error-in-windowcpp-with-g44 | |
7 | --- a/graphics/window.cpp | |
8 | +++ b/graphics/window.cpp | |
9 | @@ -398,7 +398,7 @@ void window_t::center_token_fxp(int _x, | |
10 | */ | |
11 | if(token) | |
12 | { | |
13 | - char *tok = strchr(txt, token); | |
14 | + const char *tok = strchr(txt, token); | |
15 | if(tok) | |
16 | tokpos = tok-txt; | |
17 | else |