diff --git a/src/fe-common/irc/notifylist/fe-notifylist.c b/src/fe-common/irc/notifylist/fe-notifylist.c index 0afff392..7253a042 100644 --- a/src/fe-common/irc/notifylist/fe-notifylist.c +++ b/src/fe-common/irc/notifylist/fe-notifylist.c @@ -44,7 +44,7 @@ static GSList *mask_add_once(GSList *list, const char *mask) ptr = strchr(mask, '!'); str = ptr == NULL ? g_strdup(mask) : - g_strndup(mask, (int) (ptr-mask)+1); + g_strndup(mask, (int) (ptr-mask)); if (gslist_find_icase_string(list, str) == NULL) return g_slist_append(list, str);