diff options
| author | 2006-01-14 14:37:10 +0000 | |
|---|---|---|
| committer | 2006-01-14 14:37:10 +0000 | |
| commit | a4693934583e30e245c60d51c01ad87d7dc08581 (patch) | |
| tree | 80fca9cfe8d505b356e466a360d829ceccb71608 /src/users.cpp | |
| parent | Added extra safety check for a condition that should NOT happen (in theory, b... (diff) | |
| download | inspircd++-a4693934583e30e245c60d51c01ad87d7dc08581.tar.gz inspircd++-a4693934583e30e245c60d51c01ad87d7dc08581.tar.bz2 inspircd++-a4693934583e30e245c60d51c01ad87d7dc08581.zip | |
Replaced some 'n' with '*n' that was breaking userrec::MakeHost
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2786 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/users.cpp b/src/users.cpp index 256b04780..e78ac400c 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -84,10 +84,10 @@ void userrec::MakeHost(char* nhost) { /* This is much faster than snprintf */ char* t = nhost; - for(char* n = ident; n; n++) + for(char* n = ident; *n; n++) *t++ = *n; *t++ = '@'; - for(char* n = host; n; n++) + for(char* n = host; *n; n++) *t++ = *n; *t = 0; } @@ -102,13 +102,13 @@ char* userrec::GetFullHost() { static char result[MAXBUF]; char* t = result; - for(char* n = nick; n; n++) + for(char* n = nick; *n; n++) *t++ = *n; *t++ = '!'; - for(char* n = ident; n; n++) + for(char* n = ident; *n; n++) *t++ = *n; *t++ = '@'; - for(char* n = dhost; n; n++) + for(char* n = dhost; *n; n++) *t++ = *n; *t = 0; return result; @@ -128,13 +128,13 @@ char* userrec::GetFullRealHost() { static char fresult[MAXBUF]; char* t = fresult; - for(char* n = nick; n; n++) + for(char* n = nick; *n; n++) *t++ = *n; *t++ = '!'; - for(char* n = ident; n; n++) + for(char* n = ident; *n; n++) *t++ = *n; *t++ = '@'; - for(char* n = host; n; n++) + for(char* n = host; *n; n++) *t++ = *n; *t = 0; return fresult; |
