From 0ce48722546e80c36b8f5c824e4d58616f3ef032 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 11 Jul 2015 18:04:07 +0200 Subject: degesch: fix nick cycling --- degesch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/degesch.c b/degesch.c index 711b970..58bbbb0 100644 --- a/degesch.c +++ b/degesch.c @@ -4121,7 +4121,7 @@ irc_fetch_next_nickname (struct server *s) char *result = NULL; if (s->nick_counter >= 0 && (size_t) s->nick_counter < v.len) - result = str_vector_steal (&v, s->nick_counter++); + result = xstrdup (v.vector[s->nick_counter++]); if ((size_t) s->nick_counter >= v.len) // Exhausted all nicknames s->nick_counter = -1; -- cgit v1.2.3-70-g09d2