svn commit: samba r2282 - in
branches/SAMBA_4_0/source/rpc_server/samr: .
abartlet at samba.org
abartlet at samba.org
Sat Sep 11 15:04:41 GMT 2004
Author: abartlet
Date: 2004-09-11 15:04:40 +0000 (Sat, 11 Sep 2004)
New Revision: 2282
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/rpc_server/samr&rev=2282&nolog=1
Log:
Remove one more magic constant from the source, replace with sizeof().
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/rpc_server/samr/samdb.c
Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/samr/samdb.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/samr/samdb.c 2004-09-11 12:48:27 UTC (rev 2281)
+++ branches/SAMBA_4_0/source/rpc_server/samr/samdb.c 2004-09-11 15:04:40 UTC (rev 2282)
@@ -462,7 +462,7 @@
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;
}
More information about the samba-cvs
mailing list