Using fgets instead of getline.

This commit is contained in:
Pere Pujal i Carabantes 2010-06-01 22:34:24 +00:00
parent 9643a8df1c
commit 653bdb0e88

View file

@ -19232,7 +19232,6 @@ static void load_info_about_label_surface(FILE * lfi)
int new_pos;
int x, y, pix_size;
Uint8 a;
size_t max_text;
/* Clear label surface */
@ -19314,11 +19313,8 @@ static void load_info_about_label_surface(FILE * lfi)
fscanf(lfi, "%d\n", &new_node->save_cur_font);
new_node->save_cur_font = 0;
max_text = 64;
new_node->save_font_type = NULL;
getline(&new_node->save_font_type, &max_text, lfi);
new_node->save_font_type = malloc(64);
fgets(new_node->save_font_type, 64, lfi);
fscanf(lfi, "%d\n", &new_node->save_text_state);
fscanf(lfi, "%u\n", &new_node->save_text_size);