Skip to content

Commit

Permalink
Replace sprintf with snprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Mar 8, 2023
1 parent 7f86250 commit b8c4a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capi/geos_ts_c.cpp
Expand Up @@ -2070,7 +2070,7 @@ extern "C" {
const char* GEOSversion()
{
static char version[256];
sprintf(version, sizeof(version), "%s", GEOS_CAPI_VERSION);
snprintf(version, sizeof(version), "%s", GEOS_CAPI_VERSION);
return version;
}

Expand Down

0 comments on commit b8c4a73

Please sign in to comment.