diff --git a/checkin_notes b/checkin_notes index c0c8e1e860..39e319c453 100755 --- a/checkin_notes +++ b/checkin_notes @@ -4983,3 +4983,12 @@ David 22 May 2006 client_types.C,h cs_scheduler.C scheduler_op.C,h + +Rom 22 May 2006 (From Sebastian Masch) + - Bug Fix: Keep the CPU capabilities string from growing without + bound by initializing the string each time + get_processor_capabilities() is called. + + client/win/ + hostinfo_win.cpp + diff --git a/client/win/hostinfo_win.cpp b/client/win/hostinfo_win.cpp index 9dda6d5f21..9e29a935eb 100755 --- a/client/win/hostinfo_win.cpp +++ b/client/win/hostinfo_win.cpp @@ -516,6 +516,7 @@ BOOL is_processor_feature_supported(DWORD feature) { // identifiers as defined in Linux. // int get_processor_capabilities( char* capabilities, int capabilities_size ) { + strcpy(capabilities, ""); if (!is_processor_feature_supported(PF_FLOATING_POINT_EMULATED)) { strncat(capabilities, "fpu ", capabilities_size - strlen(capabilities)); }