mirror of
https://github.com/BertoldVdb/ZoneDetect.git
synced 2026-03-25 08:45:56 +00:00
replaces strcat by strcat_s to remove compiler error when using ms compiler on windows
This commit is contained in:
parent
795b78da41
commit
75620a594d
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue