From 00224e7d0875630e557922d093a264d755f36e3c Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Fri, 9 Oct 1998 14:02:59 +0000 Subject: anders blomdell spotted an unititialised fstring causing strlen to go awry (ascii_p16) (This used to be commit 0b45c08ffad6f8b12c6fb2b184d3b5d52177cabe) --- source3/passdb/smbpass.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/passdb') diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c index 0347df4ee9..35de214425 100644 --- a/source3/passdb/smbpass.c +++ b/source3/passdb/smbpass.c @@ -868,6 +868,7 @@ static BOOL mod_smbfilepwd_entry(struct smb_passwd* pwd, BOOL override) fstrcpy(&ascii_p16[33], "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); } ascii_p16[65] = ':'; + ascii_p16[66] = '\0'; /* null-terminate the string so that strlen works */ /* Add on the account info bits and the time of last password change. */ -- cgit