add char pointer
added patch for strncp