summaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-02 12:33:01 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-02 12:33:01 +0000
commitd9d33e7246baf59241d083eb2c253e729390d205 (patch)
tree329d2ef5ccd28851e66889d238092d374ba14dc8 /src/server.cpp
parent519d8e5dfe379840ae5da2ac43231ec4364d7b18 (diff)
Fix all this crap - it actually works now (we pray..)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9261 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server.cpp b/src/server.cpp
index f69b4fd3b..d0023edd4 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -206,13 +206,13 @@ std::string InspIRCd::GetUID()
current_uid[1] = Config->sid[1];
current_uid[2] = Config->sid[2];
- for (int i = 3; i < UUID_LENGTH; i++)
+ for (int i = 3; i < (UUID_LENGTH - 1); i++)
current_uid[i] = '9';
- curindex = UUID_LENGTH - 1; // look at the end of the string now kthx
+ curindex = UUID_LENGTH - 2; // look at the end of the string now kthx, ignore null
// Null terminator. Important.
- current_uid[UUID_LENGTH] = '\0';
+ current_uid[UUID_LENGTH - 1] = '\0';
}
while (1)