diff --git a/src/sbbs3/sexyz.c b/src/sbbs3/sexyz.c
index 3eae0c6691375c33897306048c1ee2fb0036e8db..2f6a39016586d82879558d0fd0197830223ab1eb 100644
--- a/src/sbbs3/sexyz.c
+++ b/src/sbbs3/sexyz.c
@@ -1412,7 +1412,7 @@ int main(int argc, char **argv)
 	RingBufInit(&inbuf, IO_THREAD_BUF_SIZE);
 	RingBufInit(&outbuf, IO_THREAD_BUF_SIZE);
 
-	xmodem_init(&xm,INVALID_SOCKET,&mode,lputs,send_byte,recv_byte);
+	xmodem_init(&xm,NULL,&mode,lputs,send_byte,recv_byte);
 
 	/* Generate path/sexyz[.host].ini from path/sexyz[.exe] */
 	SAFECOPY(str,argv[0]);