summaryrefslogtreecommitdiff
path: root/src/sockutil.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-23 00:58:46 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-23 00:58:46 +0000
commit419b4c800209d5e4ba857c67cecfb67be7a1df2b (patch)
tree3a9182af25697193166973a2aca1d1e8b77823f8 /src/sockutil.c
parent9123489c32e24ed7fc21c7753ca92aaece452961 (diff)
Fix odd crash bug in the inspircd* modules by replacing use of myStrGetToken with spacesepstraem, also fix a problem on Windows with not having FD_ZERO in the sgets() function before FD_SET is called, both spotted thanks to Brandan.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2126 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/sockutil.c')
-rw-r--r--src/sockutil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sockutil.c b/src/sockutil.c
index 111558976..6690c4f53 100644
--- a/src/sockutil.c
+++ b/src/sockutil.c
@@ -419,6 +419,7 @@ char *sgets(char *buf, int len, ano_socket_t s)
if (len == 0)
return NULL;
+ FD_ZERO(&fds);
FD_SET(s, &fds);
tv.tv_sec = ReadTimeout;
tv.tv_usec = 0;