mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-03 00:45:41 +02:00
Eradicate calls to deprecated sprintf()
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ void json_context(json_object *j) {
|
||||
char *s = json_stringify(j);
|
||||
|
||||
if (strlen(s) >= 500) {
|
||||
sprintf(s + 497, "...");
|
||||
snprintf(s + 497, strlen(s) + 1 - 497, "...");
|
||||
}
|
||||
|
||||
fprintf(stderr, "in JSON object %s\n", s);
|
||||
|
||||
Reference in New Issue
Block a user