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

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;
}