Do not use a variable format string
[ira/wip.git] / source3 / passdb / pdb_ads.c
index 0ae1a8d0da61f9408d7a576993982b684d106eb2..29605ab5f263989209388ea20fadbc664c0b56a1 100644 (file)
@@ -266,7 +266,7 @@ static bool pdb_ads_init_ads_from_sam(struct pdb_ads_state *state,
 
        ret &= tldap_make_mod_fmt(
                existing, mem_ctx, pnum_mods, pmods, "displayName",
-               pdb_get_fullname(sam));
+               "%s", pdb_get_fullname(sam));
 
        ret &= tldap_make_mod_blob(
                existing, mem_ctx, pnum_mods, pmods, "unicodePwd",