summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-14 14:37:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-14 14:37:10 +0000
commita4693934583e30e245c60d51c01ad87d7dc08581 (patch)
tree80fca9cfe8d505b356e466a360d829ceccb71608
parenta436c0371dd9c013e523b18e86e19e5631f4970f (diff)
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
-rw-r--r--src/users.cpp16
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;