enum: Fix compiler warning

Closes strongswan/strongswan#1025
This commit is contained in:
Tobias Brunner
2022-05-02 09:31:49 +02:00
parent 4cf8cd0321
commit d23c0ea81e
+1 -1
View File
@@ -97,7 +97,7 @@ char *enum_flags_to_string(enum_name_t *e, u_int val, char *buf, size_t len)
return buf;
}
if (snprintf(buf, len, e->names[0]) >= len)
if (snprintf(buf, len, "%s", e->names[0]) >= len)
{
return NULL;
}