malloc issue solved. Malloc 1 more for the 0 char
is anagram added