warning: ‘__builtin_snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
"%s", evspan->text);
^
len = strlen(evspan->text);
evspan->ent->content = malloc(len+1);
snprintf(evspan->ent->content, len,
"%s", evspan->text);
I saw this warning on gcc 8. How do I prevent this without using -Wformat-truncation option?