Fixed the problem which popped up during realloc by giving the final line alrge buffer of data still dont get how to fix this properly submitting code for now