[Pkg-wmaker-commits] [wmbiff] 04/15: make returned password length consistent with stored password length

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:03:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to tag wmbiff_0_4_15
in repository wmbiff.

commit d2fa39bc1e807e8147d8513ecd59da397c39f70f
Author: bluehal <bluehal>
Date:   Mon Mar 3 19:06:36 2003 +0000

    make returned password length consistent with stored password length
---
 wmbiff/passwordMgr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wmbiff/passwordMgr.c b/wmbiff/passwordMgr.c
index 13318fd..4fca7b7 100644
--- a/wmbiff/passwordMgr.c
+++ b/wmbiff/passwordMgr.c
@@ -151,6 +151,7 @@ char *passwordFor(const char *username,
 
 			strcpy(p->user, username);
 			strcpy(p->server, servername);
+			password_ptr[31] = '\0';
 			strncpy(p->password, password_ptr, 31);
 			p->password[31] = '\0';	/* force a null termination */
 			// caller is responsible for freeing plaintext version free(password_ptr);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git



More information about the Pkg-wmaker-commits mailing list