From 2e6197d634a14533899915477032f082e675e35f Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 31 May 1999 19:15:52 +0000 Subject: [PATCH] Added password_strncpy() which pads destination with zeros. --- nest/password.c | 12 ++++++++++++ nest/password.h | 2 ++ 2 files changed, 14 insertions(+) diff --git a/nest/password.c b/nest/password.c index ce7941ea..f0f433ab 100644 --- a/nest/password.c +++ b/nest/password.c @@ -38,3 +38,15 @@ get_best_password(struct password_item *head, int flags) } return best; } + +void +password_strncpy(char *to, char *from, int len) +{ + int i; + for (i=0; i