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.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25481.pdf
|
||||
#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) {
|
||||
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
|
||||
// on Visual Studio 2005
|
||||
#if _MSC_VER >= 1400
|
||||
|
||||
//#ifndef _CRT_SECURE_NO_DEPRECATE
|
||||
//#define _CRT_SECURE_NO_DEPRECATE
|
||||
//#endif
|
||||
|
||||
//#ifndef _CRT_SECURE_NO_WARNINGS
|
||||
//#define _CRT_SECURE_NO_WARNINGS
|
||||
//#endif
|
||||
|
||||
#ifndef _CRT_SECURE_NO_DEPRECATE
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
#endif
|
||||
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Target Windows XP or better with Internet Explorer 5.01 or better
|
||||
|
|
Loading…
Reference in New Issue