Fix segv in debug command. Pointed out by Vadik Mironov <vadikmironoff@mtu-net.ru>.

SVN revision: 11502
This commit is contained in:
Kim Woelders 2004-09-02 17:55:31 +00:00
parent 8de03bb8e3
commit 092da03a48
1 changed files with 3 additions and 0 deletions

View File

@ -4433,6 +4433,9 @@ IPC_Debug(const char *params, Client * c __UNUSED__)
int l;
const char *p;
if (!params)
return;
p = params;
l = 0;
sscanf(p, "%1000s %n", param, &l);