diff options
Diffstat (limited to 'src/users.c')
| -rw-r--r-- | src/users.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.c b/src/users.c index 3c9dc069e..abe8211ba 100644 --- a/src/users.c +++ b/src/users.c @@ -521,10 +521,10 @@ User *do_nick(const char *source, const char *nick, const char *username, const * Ugly swap routine for Flop's bug :) **/ if (realname) { - tmp = strchr(realname, '%'); + tmp = const_cast<char *>(strchr(realname, '%')); while (tmp) { *tmp = '-'; - tmp = strchr(realname, '%'); + tmp = const_cast<char *>(strchr(realname, '%')); } } logrealname = normalizeBuffer(realname); |
