diff options
author | bigbear <ns@bigbear.dk> | 2024-02-08 04:38:31 +0100 |
---|---|---|
committer | bigbear <ns@bigbear.dk> | 2024-02-08 20:25:46 +0100 |
commit | d61f38badd7a3f5f4ca7a0d17aa81e081d81dd49 (patch) | |
tree | 8d9dbdb15bb25cf396e9d4ffd492308e0966ba39 /deps/sysobj_early | |
parent | ddf42c8dfd3523952d3debe335fc6efff8c107ba (diff) |
FIX QLcode - sscanf incorrect check
Diffstat (limited to 'deps/sysobj_early')
-rw-r--r-- | deps/sysobj_early/src/util_sysobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/sysobj_early/src/util_sysobj.c b/deps/sysobj_early/src/util_sysobj.c index de3ec8b2..94f71944 100644 --- a/deps/sysobj_early/src/util_sysobj.c +++ b/deps/sysobj_early/src/util_sysobj.c @@ -100,7 +100,7 @@ int util_get_did(gchar *str, const gchar *lbl) { gchar tmpfmt[128] = ""; gchar tmpchk[128] = ""; sprintf(tmpfmt, "%s%s", lbl, "%d"); - if ( sscanf(str, tmpfmt, &id) ) { + if ( sscanf(str, tmpfmt, &id)==1 ) { sprintf(tmpchk, tmpfmt, id); if ( SEQ(str, tmpchk) ) return id; |