mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-26 19:22:22 -05:00
Oops, Windows doesn't offer strndup(). Use g_strndup().
This commit is contained in:
parent
6c7346cdbe
commit
07b69fd2f8
@ -211,10 +211,10 @@ url_check_word (const char *word)
|
|||||||
case WORD_NICK:
|
case WORD_NICK:
|
||||||
if (strchrs (word[laststart], NICKPRE))
|
if (strchrs (word[laststart], NICKPRE))
|
||||||
laststart++;
|
laststart++;
|
||||||
str = strndup (&word[laststart], lastend - laststart);
|
str = g_strndup (&word[laststart], lastend - laststart);
|
||||||
if (!userlist_find (current_sess, str))
|
if (!userlist_find (current_sess, str))
|
||||||
lasttype = 0;
|
lasttype = 0;
|
||||||
free (str);
|
g_free (str);
|
||||||
return lasttype;
|
return lasttype;
|
||||||
case WORD_EMAIL:
|
case WORD_EMAIL:
|
||||||
if (!isalnum (word[laststart]))
|
if (!isalnum (word[laststart]))
|
||||||
|
Loading…
Reference in New Issue
Block a user