From the booklet of Rabbi David Shalom Naki, shlit"a: if the father’s name is Yosef and a friend’s name is Yosef Chaim, one may call the friend Yosef Chaim even in the father’s presence, for it is considered a change from the father’s name. The same is true in the reverse, and also if the father is named Yosef Chaim but is called only Yosef.