rpms/boinc-client/F-7 boinc-parsecolor.patch,NONE,1.1
Miloš Jakubíček (mjakubicek)
fedora-extras-commits at redhat.com
Fri May 16 22:56:35 UTC 2008
Author: mjakubicek
Update of /cvs/pkgs/rpms/boinc-client/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13575/F-7
Added Files:
boinc-parsecolor.patch
Log Message:
This patch fixes boincmgr segfaulting on F9/x86_64 (#445902)
(I just forgot to cvs add it before the previous commit)
boinc-parsecolor.patch:
--- NEW FILE boinc-parsecolor.patch ---
--- 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);
}
More information about the fedora-extras-commits
mailing list