X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2FABM2.git;a=blobdiff_plain;f=ABM2%2Fporting.h;h=d6a59c8f480a9ea18da9d46135d665ed6c29e7fc;hp=3ad233031284628127cdf9aeea6df26805207e56;hb=3f925daf5df7b52445d337b5aaf0257278ff6828;hpb=11384142f7b4616ae227d6bde5b8b50a158e9e3c diff --git a/ABM2/porting.h b/ABM2/porting.h index 3ad2330..d6a59c8 100644 --- a/ABM2/porting.h +++ b/ABM2/porting.h @@ -1,5 +1,6 @@ #ifndef WIN32 #define vsprintf_s vsnprintf #define sprintf_s snprintf + #define strcpy_s(dst, size, src) strncpy(dst, src, size) #define ZeroMemory(buf, size) memset(buf, 0, size) #endif // !WIN32