From fb58653c413b276bc6b08cd9c72661c117a8bf89 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 20 Oct 2009 04:40:37 +0000 Subject: Fix GetUID generating 10-character UUIDs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11932 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server.cpp') 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; -- cgit v1.2.3