aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-11 18:04:07 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-11 18:04:07 +0200
commit0ce48722546e80c36b8f5c824e4d58616f3ef032 (patch)
tree82f647cf529cb5b5df209a8356e723a24f13df34
parentb3876260b98364524b82f91b4b92721b0e22b840 (diff)
downloadxK-0ce48722546e80c36b8f5c824e4d58616f3ef032.tar.gz
xK-0ce48722546e80c36b8f5c824e4d58616f3ef032.tar.xz
xK-0ce48722546e80c36b8f5c824e4d58616f3ef032.zip
degesch: fix nick cycling
-rw-r--r--degesch.c2
1 files changed, 1 insertions, 1 deletions
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;