summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--auth-skey.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 406b8e2c2..9931a8a41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -149,6 +149,9 @@
149 - markus@cvs.openbsd.org 2002/01/11 23:26:30 149 - markus@cvs.openbsd.org 2002/01/11 23:26:30
150 [auth-skey.c] 150 [auth-skey.c]
151 use snprintf; mouring@ 151 use snprintf; mouring@
152 - markus@cvs.openbsd.org 2002/01/12 13:10:29
153 [auth-skey.c]
154 undo local change
152 155
153 156
15420020121 15720020121
@@ -7297,4 +7300,4 @@
7297 - Wrote replacements for strlcpy and mkdtemp 7300 - Wrote replacements for strlcpy and mkdtemp
7298 - Released 1.0pre1 7301 - Released 1.0pre1
7299 7302
7300$Id: ChangeLog,v 1.1765 2002/01/22 12:25:30 djm Exp $ 7303$Id: ChangeLog,v 1.1766 2002/01/22 12:25:46 djm Exp $
diff --git a/auth-skey.c b/auth-skey.c
index d98fa6b01..df19f7507 100644
--- a/auth-skey.c
+++ b/auth-skey.c
@@ -22,7 +22,7 @@
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24#include "includes.h" 24#include "includes.h"
25RCSID("$OpenBSD: auth-skey.c,v 1.15 2002/01/11 23:26:30 markus Exp $"); 25RCSID("$OpenBSD: auth-skey.c,v 1.16 2002/01/12 13:10:29 markus Exp $");
26 26
27#ifdef SKEY 27#ifdef SKEY
28 28
@@ -60,7 +60,8 @@ skey_query(void *ctx, char **name, char **infotxt,
60 60
61 len = strlen(challenge) + strlen(PROMPT) + 1; 61 len = strlen(challenge) + strlen(PROMPT) + 1;
62 p = xmalloc(len); 62 p = xmalloc(len);
63 snprintf(p, len, "%s%s", challenge, PROMPT); 63 strlcpy(p, challenge, len);
64 strlcat(p, PROMPT, len);
64 (*prompts)[0] = p; 65 (*prompts)[0] = p;
65 66
66 return 0; 67 return 0;