replaces strcat by strcat_s to remove compiler error when using ms compiler on windows

This commit is contained in:
Edouard Charvet 2022-04-11 09:02:59 +02:00
parent 795b78da41
commit 75620a594d

View file

@ -1240,7 +1240,11 @@ char* ZDHelperSimpleLookupString(const ZoneDetect* library, float lat, float lon
output[0] = 0;
for(i=0; i<sizeof(strings)/sizeof(char*); i++) {
if(strings[i]) {
#if defined(_MSC_VER)
strcat_s(output + strlen(output),length-strlen(output), strings[i]);
#else
strcat(output + strlen(output), strings[i]);
#endif
}
}
}