SCP: Fix help topic matching to properly return wildcard and ambiguous status

As reported in #723
This commit is contained in:
Mark Pizzolato 2019-07-16 03:12:31 -07:00
parent 2840e3b67f
commit 40731f0433

2
scp.c
View file

@ -13568,7 +13568,7 @@ return SCPE_OK;
#define HLP_MATCH_AMBIGUOUS (~0u) #define HLP_MATCH_AMBIGUOUS (~0u)
#define HLP_MATCH_WILDCARD (~1U) #define HLP_MATCH_WILDCARD (~1U)
#define HLP_MATCH_NONE 0 #define HLP_MATCH_NONE 0
static int matchHelpTopicName (TOPIC *topic, const char *token) static size_t matchHelpTopicName (TOPIC *topic, const char *token)
{ {
size_t i, match; size_t i, match;
char cbuf[CBUFSIZE], *cptr; char cbuf[CBUFSIZE], *cptr;