mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-30 17:58:37 +08:00
obs-x264: Fix snprintf calls with literals as buffer sizes
This commit is contained in:
@@ -361,7 +361,7 @@ static void log_x264(void *param, int level, const char *format, va_list args)
|
||||
struct obs_x264 *obsx264 = param;
|
||||
char str[1024];
|
||||
|
||||
vsnprintf(str, 1024, format, args);
|
||||
vsnprintf(str, sizeof(str), format, args);
|
||||
info("%s", str);
|
||||
|
||||
UNUSED_PARAMETER(level);
|
||||
|
||||
Reference in New Issue
Block a user