Assigning char array from ifstream breaks array if adding another char to array

you forgot to add ‘\0’ char in zero terminated char array, after you replaced value with index 2.

Leave a Comment