From 297d0be2dc2505b234456cd0592c506dfaa5436f Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 5 Jan 2022 21:57:49 +1100 Subject: [PATCH] [obs] allow for the larger KVMFR header size now --- obs/lg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obs/lg.c b/obs/lg.c index 6280388f..f497bff9 100644 --- a/obs/lg.c +++ b/obs/lg.c @@ -403,7 +403,7 @@ static void lgUpdate(void * data, obs_data_t * settings) != LGMP_OK) return; - if (udataSize != sizeof(KVMFR) || + if (udataSize < sizeof(KVMFR) || memcmp(udata->magic, KVMFR_MAGIC, sizeof(udata->magic)) != 0 || udata->version != KVMFR_VERSION) {