diff options
author | RichardHitt <rbh00@netcom.com> | 2013-01-11 16:12:52 -0800 |
---|---|---|
committer | RichardHitt <rbh00@netcom.com> | 2013-01-11 16:12:52 -0800 |
commit | 07b69fd2f8236d05191b8ceff86db74a0509249c (patch) | |
tree | 660e26bcddd771275b879d8b26b7668e4b1c5afe /src | |
parent | 6c7346cdbedc0dd775c028fd5a0394db05d5fd30 (diff) |
Oops, Windows doesn't offer strndup(). Use g_strndup().
Diffstat (limited to 'src')
-rw-r--r-- | src/common/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/url.c b/src/common/url.c index 873878ac..f22da931 100644 --- a/src/common/url.c +++ b/src/common/url.c @@ -211,10 +211,10 @@ url_check_word (const char *word) case WORD_NICK: if (strchrs (word[laststart], NICKPRE)) laststart++; - str = strndup (&word[laststart], lastend - laststart); + str = g_strndup (&word[laststart], lastend - laststart); if (!userlist_find (current_sess, str)) lasttype = 0; - free (str); + g_free (str); return lasttype; case WORD_EMAIL: if (!isalnum (word[laststart])) |