From d61f38badd7a3f5f4ca7a0d17aa81e081d81dd49 Mon Sep 17 00:00:00 2001 From: bigbear Date: Thu, 8 Feb 2024 04:38:31 +0100 Subject: FIX QLcode - sscanf incorrect check --- modules/devices/x86/processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/devices') diff --git a/modules/devices/x86/processor.c b/modules/devices/x86/processor.c index 518786b5..4141f051 100644 --- a/modules/devices/x86/processor.c +++ b/modules/devices/x86/processor.c @@ -588,7 +588,7 @@ gchar *processor_get_capabilities_from_flags(gchar *strflags, gchar *lookup_pref old = flags; while (flags[j]) { - if ( sscanf(flags[j], "[%d]", &i) ) { + if ( sscanf(flags[j], "[%d]", &i)==1 ) { /* Some flags are indexes, like [13], and that looks like * a new section to hardinfo shell */ tmp = h_strdup_cprintf("(%s%d)=\n", tmp, -- cgit v1.2.3