Fix crash with long notify lists.
This commit is contained in:
parent
4ec0e6fd05
commit
e10faa0369
|
@ -394,8 +394,11 @@ notify_flush_watches (server * serv, GSList *from, GSList *end)
|
||||||
while (list != end)
|
while (list != end)
|
||||||
{
|
{
|
||||||
notify = list->data;
|
notify = list->data;
|
||||||
serv->supports_monitor ? strcat (tbuf, ",") : strcat (tbuf, " +");
|
if (serv->supports_monitor)
|
||||||
strcat (tbuf, notify->name);
|
g_strlcat (tbuf, ",", sizeof(tbuf));
|
||||||
|
else
|
||||||
|
g_strlcat (tbuf, " +", sizeof(tbuf));
|
||||||
|
g_strlcat (tbuf, notify->name, sizeof(tbuf));
|
||||||
list = list->next;
|
list = list->next;
|
||||||
}
|
}
|
||||||
serv->p_raw (serv, tbuf);
|
serv->p_raw (serv, tbuf);
|
||||||
|
|
Loading…
Reference in New Issue