Strings.c with buffer accesing as a pointer. Works when accessing as Array