summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-01-24 00:17:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:22 -0500
commit78f5f4b260d877ce615dbbdc2bccbb0cd251f08a (patch)
treedc1842b9b9e8d12f1b10b6c9ab719cc645716752
parentdb8ee51cf26372eee5eed9bf177762fe090f720f (diff)
downloadsamba-78f5f4b260d877ce615dbbdc2bccbb0cd251f08a.tar.gz
samba-78f5f4b260d877ce615dbbdc2bccbb0cd251f08a.tar.bz2
samba-78f5f4b260d877ce615dbbdc2bccbb0cd251f08a.zip
r20985: leave room for terminating NULL when printing password hashes via 'pdbedit -L -w'
(This used to be commit 2a7311db272b5a504e2db672d92adbb3cf2bea15)
-rw-r--r--source3/passdb/passdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index fa9337ec10..1df94e0ee5 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -346,9 +346,9 @@ void pdb_sethexpwd(char *p, const unsigned char *pwd, uint32 acct_ctrl)
slprintf(&p[i*2], 3, "%02X", pwd[i]);
} else {
if (acct_ctrl & ACB_PWNOTREQ)
- safe_strcpy(p, "NO PASSWORDXXXXXXXXXXXXXXXXXXXXX", 33);
+ safe_strcpy(p, "NO PASSWORDXXXXXXXXXXXXXXXXXXXXX", 32);
else
- safe_strcpy(p, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 33);
+ safe_strcpy(p, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 32);
}
}