if (fscanf(f, "%s4096\n", str_data) != 1)
Suggest new code
if (fscanf(f, "%4096s\n", str_data) != 1)
Log in to post a comment.