From c3e2c4748556d7b72b52b5b257a54a59f00d3953 Mon Sep 17 00:00:00 2001 From: Cloudwalk Date: Mon, 21 Sep 2020 23:56:42 -0400 Subject: [PATCH] protocol: strncmp until length of input, so BJP2 and 3 are selectable --- protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol.c b/protocol.c index f0a6917c..21db9f03 100644 --- a/protocol.c +++ b/protocol.c @@ -321,7 +321,7 @@ protocol_t *Protocol_ForName(const char *name) int i; for(i = 0; &protocols[i]; i++) { - if(!strncmp(name, protocols[i]->name, strlen(protocols[i]->name))) + if(!strncmp(name, protocols[i]->name, strlen(name))) break; } return protocols[i]; -- 2.39.2