From 9a09436ac8a6ad07c94a629256db6f1d2be966c5 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 9 Nov 2021 17:45:26 +0100 Subject: [PATCH] allow hex (and octal) in hardware links Conflicts: modules/database/src/ioc/dbStatic/dbStaticLib.c --- modules/database/src/ioc/dbStatic/dbStaticLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/database/src/ioc/dbStatic/dbStaticLib.c b/modules/database/src/ioc/dbStatic/dbStaticLib.c index 3ed08de72..feee5bf5c 100644 --- a/modules/database/src/ioc/dbStatic/dbStaticLib.c +++ b/modules/database/src/ioc/dbStatic/dbStaticLib.c @@ -2275,7 +2275,7 @@ long dbParseLink(const char *str, short ftype, dbLinkInfo *pinfo) } /* generalized extraction of ID character and integer pairs (eg. "#C15 S14") */ - ret = sscanf(pinfo->target, "# %c%d %c%d %c%d %c%d %c%d %c", + ret = sscanf(pinfo->target, "# %c%i %c%i %c%i %c%i %c%i %c", &pinfo->hwid[0], &pinfo->hwnums[0], &pinfo->hwid[1], &pinfo->hwnums[1], &pinfo->hwid[2], &pinfo->hwnums[2],