Oops - fix.

SVN revision: 28475
This commit is contained in:
Kim Woelders 2007-02-25 20:08:44 +00:00
parent 135ec74bf8
commit 27446fd4a8
1 changed files with 2 additions and 1 deletions

View File

@ -1605,8 +1605,9 @@ HandleIPC(const char *params, Client * c)
IpcPrintInit();
cmd[0] = 0;
num = 0;
sscanf(params, "%100s %n", cmd, &num);
prm = (num > 0) ? params + num : NULL;
prm = (num > 0 && params[num]) ? params + num : NULL;
lst = IPC_GetList(&num);