summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp6
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)