From 94ca5dc0bd99999921fb0dfb05e4f3d90e7a85b5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 1 Oct 2013 12:23:06 +0000 Subject: idmap_autorid: Use fstr_sprintf in idmap_autorid_build_keystr() Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- source3/winbindd/idmap_autorid_tdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/winbindd') 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); } -- cgit