summaryrefslogtreecommitdiffstats
path: root/auth-skey.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-skey.c')
-rw-r--r--auth-skey.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/auth-skey.c b/auth-skey.c
index fd0fcfc9..d98fa6b0 100644
--- a/auth-skey.c
+++ b/auth-skey.c
@@ -22,7 +22,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "includes.h"
-RCSID("$OpenBSD: auth-skey.c,v 1.14 2002/01/11 20:14:11 markus Exp $");
+RCSID("$OpenBSD: auth-skey.c,v 1.15 2002/01/11 23:26:30 markus Exp $");
#ifdef SKEY
@@ -60,8 +60,7 @@ skey_query(void *ctx, char **name, char **infotxt,
len = strlen(challenge) + strlen(PROMPT) + 1;
p = xmalloc(len);
- strlcpy(p, challenge, len);
- strlcat(p, PROMPT, len);
+ snprintf(p, len, "%s%s", challenge, PROMPT);
(*prompts)[0] = p;
return 0;