ircd: get_or_create_channel: avoid clang static analysis warning

Use `len` after setting it.
This commit is contained in:
Simon Arlott 2017-07-29 20:14:43 +01:00
parent f660af2155
commit b9a6f1e5a1
No known key found for this signature in database
GPG Key ID: C8975F2043CA5D24
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ get_or_create_channel(struct Client *client_p, const char *chname, bool *isnew)
}
len = CHANNELLEN;
t = LOCAL_COPY(s);
*(t + CHANNELLEN) = '\0';
t[len] = '\0';
s = t;
}