Просмотр исходного кода

libobs: Specify format string for bcrash

Detected by PVS Studio.
Richard Stanway 3 лет назад
Родитель
Сommit
dccf569982
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      libobs/obs-win-crash-handler.c

+ 1 - 1
libobs/obs-win-crash-handler.c

@@ -549,7 +549,7 @@ static LONG CALLBACK exception_handler(PEXCEPTION_POINTERS exception)
 	inside_handler = true;
 
 	handle_exception(&data, exception);
-	bcrash(data.str.array);
+	bcrash("%s", data.str.array);
 	exception_handler_data_free(&data);
 
 	inside_handler = false;