]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_pas2.c
removed all references to sprintf from several files (not all files yet)
[citadel.git] / citadel / serv_pas2.c
index b988af94e81b17f24a8d0a9053fa706638d25b1a..f1b1dbf1e8e3b57535c2b61ec14aae7ec41d00b3 100644 (file)
@@ -63,11 +63,11 @@ void cmd_pas2(char *argbuf)
        
        if (strlen(pw) != (MD5_HEXSTRING_SIZE-1))
        {
-               cprintf("%d Auth string of length %ld is the wrong length (should be %d).\n", ERROR, strlen(pw), MD5_HEXSTRING_SIZE-1);
+               cprintf("%d Auth string of length %ld is the wrong length (should be %d).\n", ERROR, (long)strlen(pw), MD5_HEXSTRING_SIZE-1);
                return;
        }
        
-       make_apop_string(CC->usersupp.password, CC->cs_nonce, hexstring);
+       make_apop_string(CC->usersupp.password, CC->cs_nonce, hexstring, sizeof hexstring);
        
        if (!strcmp(hexstring, pw))
        {