diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2022-09-07 19:54:31 -0400 |
---|---|---|
committer | Manuel Stoeckl <code@mstoeckl.com> | 2022-09-08 06:34:21 -0400 |
commit | 625cde97dc81bdbcef4d24b8427d3f06a0379e2f (patch) | |
tree | 9089e71cc151417b0a3a3f45133202aa70fd3d9b | |
parent | a77a0087e4bc2140807f7b34836878e017ac5a45 (diff) |
Fix out-of-bounds write
MPV_FORMAT_FLAG requires that the 'data' argument be a pointer
to an 'int'.
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -345,7 +345,7 @@ static void *handle_auto_stop() { static void *handle_mpv_events() { pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); - bool mpv_paused = 0; + int mpv_paused = 0; time_t start_time = time(NULL); const int MPV_OBSERVE_PAUSE = 1; |