if really confirmed as fungus infection, Ketoconazole could cure the infection . but we could use better medicine such as itraconazole once daily ,If the clinical signs is not better after 2 weeks , then you need to consider the real causes of this skin problem.