mycat_getline.c modified