summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-01 23:26:54 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-01 23:26:54 +0000
commit83a55a9d26af3772b5613e2cca7e540183f3ea62 (patch)
tree4e8433f723ef725b96f5169f90a7442921a59772 /src/inspircd.cpp
parent6e08ce6bfd1da11569cbdb78b065f62a19bf56f3 (diff)
Fixed string format vunerability, thanks again to the #ratbox people for helping find it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@947 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index cf1d8b9f9..d2a187ac7 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -1244,7 +1244,7 @@ void userlist(userrec *user,chanrec *c)
{
/* list overflowed into
* multiple numerics */
- WriteServ(user->fd,list);
+ WriteServ(user->fd,"%s",list);
snprintf(list,MAXBUF,"353 %s = %s :", user->nick, c->name);
}
}
@@ -1252,7 +1252,7 @@ void userlist(userrec *user,chanrec *c)
}
/* if whats left in the list isnt empty, send it */ if (list[strlen(list)-1] != ':')
{
- WriteServ(user->fd,list);
+ WriteServ(user->fd,"%s",list);
}
}