summaryrefslogtreecommitdiff
path: root/source4/rpc_server/samr
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-09-11 15:04:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:39 -0500
commitd987a32c8c95c745e059c5bd9c1530d29b19f2dc (patch)
tree158092a1db665baf17d2cc96cd201ce7be1e0176 /source4/rpc_server/samr
parent30ea54c4ba99bd38198d86d4b28ad6a5c16b7fa3 (diff)
downloadsamba-d987a32c8c95c745e059c5bd9c1530d29b19f2dc.tar.gz
samba-d987a32c8c95c745e059c5bd9c1530d29b19f2dc.tar.bz2
samba-d987a32c8c95c745e059c5bd9c1530d29b19f2dc.zip
r2282: Remove one more magic constant from the source, replace with sizeof().
Andrew Bartlett (This used to be commit a089bcf503bfc91eead08d10539367886b7927cd)
Diffstat (limited to 'source4/rpc_server/samr')
-rw-r--r--source4/rpc_server/samr/samdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/samr/samdb.c b/source4/rpc_server/samr/samdb.c
index 0d4443958a..ac78dc60c7 100644
--- a/source4/rpc_server/samr/samdb.c
+++ b/source4/rpc_server/samr/samdb.c
@@ -462,7 +462,7 @@ struct samr_Password samdb_result_hash(struct ldb_message *msg, const char *attr
const struct ldb_val *val = ldb_msg_find_ldb_val(msg, attr);
ZERO_STRUCT(hash);
if (val) {
- memcpy(hash.hash, val->data, MIN(val->length, 16));
+ memcpy(hash.hash, val->data, MIN(val->length, sizeof(hash.hash)));
}
return hash;
}