diff options
-rw-r--r-- | source3/groupdb/mapping_tdb.c | 4 |
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; |