summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-05-06 07:54:18 -0700
committerJeremy Allison <jra@samba.org>2011-05-06 18:39:17 +0200
commitf7b3909103a0acd5ee0426b85112f2c9ed4e7730 (patch)
tree7f865c69783a16ea7910b327152f27c209c411f1
parentfa8490aa4cdf8c1836919ca412de1488840094f5 (diff)
downloadsamba-f7b3909103a0acd5ee0426b85112f2c9ed4e7730.tar.gz
samba-f7b3909103a0acd5ee0426b85112f2c9ed4e7730.tar.bz2
samba-f7b3909103a0acd5ee0426b85112f2c9ed4e7730.zip
A couple more off-by-one calculations with strlcpy.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri May 6 18:39:17 CEST 2011 on sn-devel-104
-rw-r--r--source3/groupdb/mapping_tdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c
index 60cdbf1447..a5fa1b7a24 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;