diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-29 04:25:25 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-29 04:25:25 +0000 |
commit | aba25d142ea1505cc401cc087f3f02e5db72c02d (patch) | |
tree | c0c5fce0288b6aabbde9c8997d97be9645f58f55 /src/users.cpp | |
parent | 9b6a63ba94301187ec1cfffae756cf26b69ed5dd (diff) |
A lot more of the core consts are now configurable at compile time
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1546 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index 8c7f1409b..cf977dff2 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -67,6 +67,7 @@ void userrec::CloseSocket() char* userrec::GetFullHost() { + static char result[MAXBUF]; snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost); return result; } @@ -83,8 +84,9 @@ int userrec::ReadData(void* buffer, size_t size) char* userrec::GetFullRealHost() { - snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host); - return result; + static char fresult[MAXBUF]; + snprintf(fresult,MAXBUF,"%s!%s@%s",nick,ident,host); + return fresult; } bool userrec::IsInvited(char* channel) |