Using sprintf_s now.

This commit is contained in:
Armin Novak 2015-03-30 18:17:07 +02:00
parent 0adab13719
commit eedf45583a
2 changed files with 5 additions and 3 deletions

View File

@ -32,7 +32,7 @@
#include <assert.h>
#include <winpr/crt.h>
#include <winpr/string.h>
#include <winpr/stream.h>
#include <winpr/wtsapi.h>
@ -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;
}

View File

@ -24,6 +24,8 @@
#include <stdlib.h>
#include <stdio.h>
#include <winpr/crt.h>
#include <winpr/string.h>
#include <winpr/winpr.h>
#include <winpr/version.h>
@ -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;
}