1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 13:39:10 +00:00

Fix incorrect param order.

This commit is contained in:
Brenden Matthews 2021-01-23 19:17:40 -06:00
parent ab0cdac0a6
commit 36faf216df
No known key found for this signature in database
GPG Key ID: B49ABB7270D9D4FD

View File

@ -108,7 +108,7 @@ void ev_num(irc_session_t *session, unsigned int event, const char *,
if (event == 433) { // nick in use
int len = strlen(params[1]) + 4;
char *newnick = (char *)malloc(len);
strncpy(newnick, len, params[1]);
strncpy(newnick, params[1], len);
attachment[1] += rand() % 10;
attachment[2] += rand() % 10;
strncat(newnick, attachment, len - 1);