summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-10-09 14:02:59 +0000
committerLuke Leighton <lkcl@samba.org>1998-10-09 14:02:59 +0000
commit00224e7d0875630e557922d093a264d755f36e3c (patch)
tree6e4912ec079344f173ab0603178373c3208a9c75 /source3
parent7c45b3c25c665d65cfdb503724efe094b5172c12 (diff)
downloadsamba-00224e7d0875630e557922d093a264d755f36e3c.tar.gz
samba-00224e7d0875630e557922d093a264d755f36e3c.tar.bz2
samba-00224e7d0875630e557922d093a264d755f36e3c.zip
anders blomdell spotted an unititialised fstring causing strlen to go
awry (ascii_p16) (This used to be commit 0b45c08ffad6f8b12c6fb2b184d3b5d52177cabe)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/smbpass.c1
1 files changed, 1 insertions, 0 deletions
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. */