summaryrefslogtreecommitdiff
path: root/src/protocol/bahamut.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/bahamut.c')
-rw-r--r--src/protocol/bahamut.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index e8be32ca9..050d37fb0 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -709,14 +709,13 @@ class BahamutIRCdProto : public IRCDProto
void SetAutoIdentificationToken(User *u)
{
- int *c;
- char svidbuf[15];
+ char svidbuf[15], *c;
if (!u->nc)
return;
srand(time(NULL));
- snprintf(svidbuf, sizeof(svidbuf), "%i", rand());
+ snprintf(svidbuf, sizeof(svidbuf), "%d", rand());
if (u->nc->GetExt("authenticationtoken", c))
{