[SCM] Samba Shared Repository - branch master updated
Jeremy Allison
jra at samba.org
Fri May 6 10:40:02 MDT 2011
The branch, master has been updated
via f7b3909 A couple more off-by-one calculations with strlcpy.
from fa8490a s4-smbd: fix randseed_init() usage.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit f7b3909103a0acd5ee0426b85112f2c9ed4e7730
Author: Jeremy Allison <jra at samba.org>
Date: Fri May 6 07:54:18 2011 -0700
A couple more off-by-one calculations with strlcpy.
Autobuild-User: Jeremy Allison <jra at samba.org>
Autobuild-Date: Fri May 6 18:39:17 CEST 2011 on sn-devel-104
-----------------------------------------------------------------------
Summary of changes:
source3/groupdb/mapping_tdb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c
index 60cdbf1..a5fa1b7 100644
--- a/source3/groupdb/mapping_tdb.c
+++ b/source3/groupdb/mapping_tdb.c
@@ -901,10 +901,10 @@ static int convert_ldb_record(TDB_CONTEXT *ltdb, TDB_DATA key,
}
} else if (StrCaseCmp(name, "ntname") == 0) {
strlcpy(map.nt_name, val,
- sizeof(map.nt_name) -1);
+ sizeof(map.nt_name));
} else if (StrCaseCmp(name, "comment") == 0) {
strlcpy(map.comment, val,
- sizeof(map.comment) -1);
+ sizeof(map.comment));
} else if (StrCaseCmp(name, "member") == 0) {
if (!string_to_sid(&members[j], val)) {
errno = EIO;
--
Samba Shared Repository
More information about the samba-cvs
mailing list