mirror of https://github.com/BOINC/boinc.git
client: Let strlcat handle dealing with the buffer size and suppress the security warnings again.
This commit is contained in:
parent
73521fce0a
commit
2997944822
|
@ -1123,7 +1123,7 @@ bool is_avx_supported() {
|
||||||
// see: http://www.intel.com/Assets/PDF/appnote/241618.pdf
|
// see: http://www.intel.com/Assets/PDF/appnote/241618.pdf
|
||||||
// see: http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25481.pdf
|
// see: http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25481.pdf
|
||||||
#define FEATURE_TEST(feature_set_supported, test, feature_name) \
|
#define FEATURE_TEST(feature_set_supported, test, feature_name) \
|
||||||
if (feature_set_supported && test) strlcat(features, feature_name, features_size - strlen(features))
|
if (feature_set_supported && test) strlcat(features, feature_name, features_size)
|
||||||
|
|
||||||
int get_processor_features(char* vendor, char* features, int features_size) {
|
int get_processor_features(char* vendor, char* features, int features_size) {
|
||||||
unsigned int std_eax = 0, std_ebx = 0, std_ecx = 0, std_edx = 0;
|
unsigned int std_eax = 0, std_ebx = 0, std_ecx = 0, std_edx = 0;
|
||||||
|
|
|
@ -101,15 +101,12 @@
|
||||||
// platforms we are going to disable the deprecation warnings if we are compiling
|
// platforms we are going to disable the deprecation warnings if we are compiling
|
||||||
// on Visual Studio 2005
|
// on Visual Studio 2005
|
||||||
#if _MSC_VER >= 1400
|
#if _MSC_VER >= 1400
|
||||||
|
#ifndef _CRT_SECURE_NO_DEPRECATE
|
||||||
//#ifndef _CRT_SECURE_NO_DEPRECATE
|
#define _CRT_SECURE_NO_DEPRECATE
|
||||||
//#define _CRT_SECURE_NO_DEPRECATE
|
#endif
|
||||||
//#endif
|
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||||
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
//#ifndef _CRT_SECURE_NO_WARNINGS
|
#endif
|
||||||
//#define _CRT_SECURE_NO_WARNINGS
|
|
||||||
//#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Target Windows XP or better with Internet Explorer 5.01 or better
|
// Target Windows XP or better with Internet Explorer 5.01 or better
|
||||||
|
|
Loading…
Reference in New Issue