1 diff -crB newspost-2.1.1.org/base/newspost.c newspost-2.1.1/base/newspost.c
2 *** newspost-2.1.1.org/base/newspost.c 2003-04-23 17:33:23.000000000 +0200
3 --- newspost-2.1.1/base/newspost.c 2009-12-29 20:18:19.000000000 +0100
6 file = fopen(filename, "r");
9 ! line = getline(line, file);
11 text_buffer = buff_add(text_buffer, "\r\n");
14 file = fopen(filename, "r");
17 ! line = get_line(line, file);
19 text_buffer = buff_add(text_buffer, "\r\n");
21 diff -crB newspost-2.1.1.org/base/utils.c newspost-2.1.1/base/utils.c
22 *** newspost-2.1.1.org/base/utils.c 2003-04-23 17:33:23.000000000 +0200
23 --- newspost-2.1.1/base/utils.c 2009-12-29 20:18:34.000000000 +0100
29 ! Buff * getline(Buff *buff, FILE *file){
31 buff = buff_free(buff);
37 ! Buff * get_line(Buff *buff, FILE *file){
39 buff = buff_free(buff);
41 diff -crB newspost-2.1.1.org/base/utils.h newspost-2.1.1/base/utils.h
42 *** newspost-2.1.1.org/base/utils.h 2003-02-08 16:09:41.000000000 +0100
43 --- newspost-2.1.1/base/utils.h 2009-12-29 20:18:45.000000000 +0100
46 file_entry * file_entry_alloc();
47 file_entry * file_entry_free(file_entry *fe);
49 ! Buff * getline(Buff *buff, FILE *file);
50 Buff *buff_add(Buff *buff, char *data, ... );
51 Buff * buff_free(Buff *buff);
52 Buff *buff_create(Buff *buff, char *data, ... );
54 file_entry * file_entry_alloc();
55 file_entry * file_entry_free(file_entry *fe);
57 ! Buff * get_line(Buff *buff, FILE *file);
58 Buff *buff_add(Buff *buff, char *data, ... );
59 Buff * buff_free(Buff *buff);
60 Buff *buff_create(Buff *buff, char *data, ... );
61 diff -crB newspost-2.1.1.org/ui/options.c newspost-2.1.1/ui/options.c
62 *** newspost-2.1.1.org/ui/options.c 2003-04-23 17:33:33.000000000 +0200
63 --- newspost-2.1.1/ui/options.c 2009-12-29 20:19:06.000000000 +0100
66 file = fopen(filename->data, "r");
69 ! line = getline(line, file);
71 if(line == NULL) continue;
74 file = fopen(filename->data, "r");
77 ! line = get_line(line, file);
79 if(line == NULL) continue;
86 ! line = getline(line, file);
87 if(line == NULL) continue;
94 ! line = get_line(line, file);
95 if(line == NULL) continue;