summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/winbindd/idmap_autorid_tdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/winbindd/idmap_autorid_tdb.c b/source3/winbindd/idmap_autorid_tdb.c
index 0523fd5918..07020ba09f 100644
--- a/source3/winbindd/idmap_autorid_tdb.c
+++ b/source3/winbindd/idmap_autorid_tdb.c
@@ -34,8 +34,8 @@ static void idmap_autorid_build_keystr(const char *domsid,
fstring keystr)
{
if (domain_range_index > 0) {
- snprintf(keystr, FSTRING_LEN, "%s#%"PRIu32,
- domsid, domain_range_index);
+ fstr_sprintf(keystr, "%s#%"PRIu32,
+ domsid, domain_range_index);
} else {
fstrcpy(keystr, domsid);
}