diff --git a/boinc-parsecolor.patch b/boinc-parsecolor.patch new file mode 100644 index 0000000..3c9b35b --- /dev/null +++ b/boinc-parsecolor.patch @@ -0,0 +1,18 @@ +--- boinc_core_release_5_10_45_orig/clientgui/SkinManager.cpp 2007-08-16 04:32:09.000000000 +1000 ++++ boinc_core_release_5_10_45/clientgui/SkinManager.cpp 2008-05-17 00:31:11.000000000 +1000 +@@ -100,11 +100,11 @@ + + + wxColour CSkinItem::ParseColor(wxString strColor) { +- int red, green, blue; ++ long red, green, blue; + wxStringTokenizer tkz(strColor, wxT(":"), wxTOKEN_RET_EMPTY); +- wxString(tkz.GetNextToken()).ToLong((long*)&red); +- wxString(tkz.GetNextToken()).ToLong((long*)&green); +- wxString(tkz.GetNextToken()).ToLong((long*)&blue); ++ wxString(tkz.GetNextToken()).ToLong(&red); ++ wxString(tkz.GetNextToken()).ToLong(&green); ++ wxString(tkz.GetNextToken()).ToLong(&blue); + return wxColour((unsigned char)red, (unsigned char)green, (unsigned char)blue); + } +