From f1667357f5eb9b27e724c0c329db3c05d6f914c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sun, 9 Jul 2023 00:36:29 +0800 Subject: [PATCH] LM (Linux): fix compiling --- src/detection/lm/lm_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/lm/lm_linux.c b/src/detection/lm/lm_linux.c index f20c6bd90..c85fc5bf9 100644 --- a/src/detection/lm/lm_linux.c +++ b/src/detection/lm/lm_linux.c @@ -60,7 +60,7 @@ static const char* getSddmVersion(FFstrbuf* version) } ffStrbufSubstrBefore(version, ffStrbufNextIndexC(version, index, '\n')); - ffStrbufSubstrAfter(version, index + strlen(".TH ")); + ffStrbufSubstrAfter(version, index + (uint32_t) strlen(".TH ")); // "SDDM" 1 "May 2014" "sddm 0.20.0" "sddm" ffStrbufSubstrBeforeLastC(version, ' '); @@ -95,7 +95,7 @@ static const char* getXfwmVersion(FFstrbuf* version) static const char* getLightdmVersion(FFstrbuf* version) { - const char* error = = ffProcessAppendStdOut(version, (char* const[]) { + const char* error = ffProcessAppendStdOut(version, (char* const[]) { "lightdm", "--version", NULL