[auth-skey.c]
     undo local change
This commit is contained in:
Damien Miller 2002-01-22 23:25:46 +11:00
parent 73f18346bc
commit df224031ca
2 changed files with 7 additions and 3 deletions

View File

@ -149,6 +149,9 @@
- markus@cvs.openbsd.org 2002/01/11 23:26:30 - markus@cvs.openbsd.org 2002/01/11 23:26:30
[auth-skey.c] [auth-skey.c]
use snprintf; mouring@ use snprintf; mouring@
- markus@cvs.openbsd.org 2002/01/12 13:10:29
[auth-skey.c]
undo local change
20020121 20020121
@ -7297,4 +7300,4 @@
- Wrote replacements for strlcpy and mkdtemp - Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1 - Released 1.0pre1
$Id: ChangeLog,v 1.1765 2002/01/22 12:25:30 djm Exp $ $Id: ChangeLog,v 1.1766 2002/01/22 12:25:46 djm Exp $

View File

@ -22,7 +22,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: auth-skey.c,v 1.15 2002/01/11 23:26:30 markus Exp $"); RCSID("$OpenBSD: auth-skey.c,v 1.16 2002/01/12 13:10:29 markus Exp $");
#ifdef SKEY #ifdef SKEY
@ -60,7 +60,8 @@ skey_query(void *ctx, char **name, char **infotxt,
len = strlen(challenge) + strlen(PROMPT) + 1; len = strlen(challenge) + strlen(PROMPT) + 1;
p = xmalloc(len); p = xmalloc(len);
snprintf(p, len, "%s%s", challenge, PROMPT); strlcpy(p, challenge, len);
strlcat(p, PROMPT, len);
(*prompts)[0] = p; (*prompts)[0] = p;
return 0; return 0;