diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-11 18:04:07 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-11 18:04:07 +0200 |
commit | 0ce48722546e80c36b8f5c824e4d58616f3ef032 (patch) | |
tree | 82f647cf529cb5b5df209a8356e723a24f13df34 /degesch.c | |
parent | b3876260b98364524b82f91b4b92721b0e22b840 (diff) | |
download | xK-0ce48722546e80c36b8f5c824e4d58616f3ef032.tar.gz xK-0ce48722546e80c36b8f5c824e4d58616f3ef032.tar.xz xK-0ce48722546e80c36b8f5c824e4d58616f3ef032.zip |
degesch: fix nick cycling
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |