0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

image-source: Fix snprintf calls with literals as buffer sizes

This commit is contained in:
PatTheMav 2022-08-08 15:30:03 +02:00
parent e62fcce852
commit 415c2d9efd
No known key found for this signature in database

View File

@ -922,7 +922,7 @@ static obs_properties_t *ss_properties(void *data)
obs_property_list_add_string(p, aspects[i], aspects[i]);
char str[32];
snprintf(str, 32, "%dx%d", cx, cy);
snprintf(str, sizeof(str), "%dx%d", cx, cy);
obs_property_list_add_string(p, str, str);
if (ss) {