Do not use a variable format string
authorVolker Lendecke <vl@samba.org>
Mon, 8 Jun 2009 18:15:56 +0000 (20:15 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 8 Jun 2009 19:14:10 +0000 (21:14 +0200)
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",
 
        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",
 
        ret &= tldap_make_mod_blob(
                existing, mem_ctx, pnum_mods, pmods, "unicodePwd",