From 7cd6d1bf4fbad1200cf13b804dab7f7396eae9b7 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 21 Aug 2019 01:45:21 +0000
Subject: [PATCH] Fix typo in ListeningSocket constructor insufficient-args
 error: "At least two arguments required (interfaces, port, and protocol)"

---
 src/sbbs3/js_socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbbs3/js_socket.c b/src/sbbs3/js_socket.c
index 36ee113ede..bf7c24a5ea 100644
--- a/src/sbbs3/js_socket.c
+++ b/src/sbbs3/js_socket.c
@@ -2739,7 +2739,7 @@ js_listening_socket_constructor(JSContext *cx, uintN argc, jsval *arglist)
 	}
 	cb.scfg = scfg;
 	if (argc < 3) {
-		JS_ReportError(cx, "At least two arguments required (interfaces, port, and protocol)");
+		JS_ReportError(cx, "At least three arguments required (interfaces, port, and protocol)");
 		goto fail;
 	}
 	if (argc > 3) {
-- 
GitLab