X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fuser_ops.h;h=7bd7c6b7f2cc21d7db7048ff0cc12154c0caafc6;hb=976ecc57b694ee60412d9b4a1be2fd07611d4ee2;hp=b057947c6d0a72828e991e465877341b304ed0ed;hpb=feb542114454b1f979c025ede9474f53b6715bce;p=citadel.git diff --git a/citadel/user_ops.h b/citadel/user_ops.h index b057947c6..7bd7c6b7f 100644 --- a/citadel/user_ops.h +++ b/citadel/user_ops.h @@ -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[63]='\0'; } return len; }