Changed line with dinammic alloc of char