urlcap crashfix (#23)

* url crash fix
This commit is contained in:
joonicks
2018-03-26 00:43:24 +02:00
committed by GitHub
parent 02aab28429
commit deb92cb01a
25 changed files with 111 additions and 128 deletions

View File

@@ -388,7 +388,7 @@ void to_user_q(const char *target, const char *format, ...)
pp = &(*pp)->next;
set_mallocdoer(to_user_q);
*pp = new = (Strp*)Calloc(sizeof(Strp) + Strlen(fmt,target,message,NULL));
*pp = new = (Strp*)Calloc(sizeof(Strp) + StrlenX(fmt,target,message,NULL));
/* Calloc sets to zero new->next = NULL; */
sprintf(new->p,fmt,target,message);
}