shithub: choc

Download patch

ref: 0cdd84e7f5ed6851eb8fdf46a270e22dce8178bf
parent: a104b98d48c0d5cfa5dcc79175f0ffa853ec4528
author: Simon Howard <fraggle@soulsphere.org>
date: Thu Sep 28 04:40:11 EDT 2017

net: Fix incorrect loop condition.

Thanks @turol.

--- a/src/net_common.c
+++ b/src/net_common.c
@@ -484,7 +484,7 @@
 {
     int i;
 
-    for (i = 0; arrlen(protocol_names); ++i)
+    for (i = 0; i < arrlen(protocol_names); ++i)
     {
         if (!strcmp(protocol_names[i].name, name))
         {