summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-10-01 12:23:06 +0000
committerMichael Adam <obnox@samba.org>2013-10-02 00:06:20 +0200
commit94ca5dc0bd99999921fb0dfb05e4f3d90e7a85b5 (patch)
tree05321fe3d588b110ee233d19af068fecadf27faf
parent2d8cc3ed9e14d5de98794b131ecf4f4675d1f9d7 (diff)
downloadsamba-94ca5dc0bd99999921fb0dfb05e4f3d90e7a85b5.tar.gz
samba-94ca5dc0bd99999921fb0dfb05e4f3d90e7a85b5.tar.bz2
samba-94ca5dc0bd99999921fb0dfb05e4f3d90e7a85b5.zip
idmap_autorid: Use fstr_sprintf in idmap_autorid_build_keystr()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-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);
}