* extract_token() now expects to be supplied with the size of the
[citadel.git] / citadel / serv_pas2.c
index c3f31cea3d9c66ab81acbb3eab1a2518c8e8f4cc..0de1a66ee24549f7c91883585186106b37aedc0c 100644 (file)
@@ -34,7 +34,7 @@
 
 void cmd_pas2(char *argbuf)
 {
-       char pw[SIZ];
+       char pw[256];
        char hexstring[MD5_HEXSTRING_SIZE];
        
 
@@ -50,7 +50,7 @@ void cmd_pas2(char *argbuf)
                return;
        }
        
-       extract(pw, argbuf, 0);
+       extract_token(pw, argbuf, 0, '|', sizeof pw);
        
        if (getuser(&CC->user, CC->curr_user))
        {