Code shuffling fixes warning with inline function... weirdo.
[citadel.git] / citadel / user_ops.h
index b057947c6d0a72828e991e465877341b304ed0ed..15107af7db79d1955677fefcfb61f18b37378a52 100644 (file)
@@ -70,7 +70,7 @@ static INLINE long cutuserkey(char *username) {
                syslog(LOG_EMERG, "Username to long: %s", username);
                cit_backtrace ();
                len = USERNAME_SIZE - 1; 
-               ((char*)username)[USERNAME_SIZE - 1]='\0';
+               username[len]='\0';
        }
        return len;
 }