diff --git a/libfreerdp/core/freerdp.c b/libfreerdp/core/freerdp.c index 1fa894a15..239883c7e 100644 --- a/libfreerdp/core/freerdp.c +++ b/libfreerdp/core/freerdp.c @@ -32,7 +32,7 @@ #include -#include +#include #include #include @@ -403,7 +403,7 @@ const char* freerdp_get_build_date(void) { static char build_date[64]; - _snprintf(build_date, sizeof(build_date), "%s %s", __DATE__, __TIME__); + sprintf_s(build_date, sizeof(build_date), "%s %s", __DATE__, __TIME__); return build_date; } diff --git a/winpr/libwinpr/utils/winpr.c b/winpr/libwinpr/utils/winpr.c index 3a1d5f3cf..e6dbd9056 100644 --- a/winpr/libwinpr/utils/winpr.c +++ b/winpr/libwinpr/utils/winpr.c @@ -24,6 +24,8 @@ #include #include +#include +#include #include #include @@ -46,7 +48,7 @@ const char* winpr_get_build_date(void) { static char build_date[64]; - _snprintf(build_date, sizeof(build_date), "%s %s", __DATE__, __TIME__); + sprintf_s(build_date, sizeof(build_date), "%s %s", __DATE__, __TIME__); return build_date; }