In-Reply-To: <20040227091921.26210.qmail@xxxxxxxxxxxxxxxxxxxxx>
pt_pass = (char *) getpass ("Password:"); memset (user_pass, '\0', l_size); strcpy (user_pass, pt_pass); // <- BAD CODE
I could have used strlcpy but I assumed (and my reading of the FreeBSD source code confirm it) that getpass(3) was doing the size check.
-- Carson