summaryrefslogtreecommitdiffstats
path: root/source/passdb
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
commit2a7311db272b5a504e2db672d92adbb3cf2bea15 (patch)
tree916a6182b2a66bd8766550511625c1339acfc69e /source/passdb
parent4984b0627c84cc192868238c0936ca1a38628cd8 (diff)
downloadsamba-2a7311db272b5a504e2db672d92adbb3cf2bea15.tar.gz
samba-2a7311db272b5a504e2db672d92adbb3cf2bea15.tar.xz
samba-2a7311db272b5a504e2db672d92adbb3cf2bea15.zip
r20985: leave room for terminating NULL when printing password hashes via 'pdbedit -L -w'
Diffstat (limited to 'source/passdb')
-rw-r--r--source/passdb/passdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c
index fa9337ec10f..1df94e0ee5e 100644
--- a/source/passdb/passdb.c
+++ b/source/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);
}
}