summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-20 04:40:37 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-20 04:40:37 +0000
commitfb58653c413b276bc6b08cd9c72661c117a8bf89 (patch)
tree3efc3b80d503e86bd0de3fbdc86f12e8f3e25a60
parent34fbe51fa4d0cb1a5e03089e4d896dbd6de017b0 (diff)
Fix GetUID generating 10-character UUIDs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11932 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 085348976..8b2c9a672 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -111,7 +111,7 @@ void InspIRCd::IncrementUID(int pos)
// At pos 3, if we hit '9', we've run out of available UIDs, and need to reset to AAA..AAA.
if (current_uid[pos] == '9')
{
- for (int i = 3; i < UUID_LENGTH; i++)
+ for (int i = 3; i < (UUID_LENGTH - 1); i++)
{
current_uid[i] = 'A';
pos = UUID_LENGTH - 1;