commit 0cdd84e7f5ed6851eb8fdf46a270e22dce8178bf
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Thu Sep 28 08:40:11 2017 -0400
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Thu Sep 28 08:40:11 2017 -0400
net: Fix incorrect loop condition.
Thanks @turol.
---
src/net_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/net_common.c b/src/net_common.c
index ca194d80..417917ed 100644
--- a/src/net_common.c
+++ b/src/net_common.c
@@ -484,7 +484,7 @@ static net_protocol_t ParseProtocolName(char *name)
{
int i;
- for (i = 0; arrlen(protocol_names); ++i)
+ for (i = 0; i < arrlen(protocol_names); ++i)
{
if (!strcmp(protocol_names[i].name, name))
{