1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/chinese/wenju/files/patch-src::tim::timtable.c
Vanilla I. Shu 958a7eb309 Add wenju 1.1, collection of writing tools in Chinese.
PR:		58181
Submitted by:	Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
2003-11-09 12:12:42 +00:00

21 lines
721 B
C

--- src/tim/timtable.c.orig Sat Oct 18 05:34:57 2003
+++ src/tim/timtable.c Sat Oct 18 05:35:14 2003
@@ -86,7 +86,7 @@
line = (char *)malloc(n*sizeof(char));;
/* getline() is a GNU externsion */
- while ((l = getline(&line, &n, fp)) > 0) {
+ while ((l = fgets(line, n, fp)) > 0) {
l = preprocess_line(line, l);
if (l > 0) {
char *p;
@@ -189,7 +189,7 @@
line = (char *)malloc(n*sizeof(char));;
/* getline() is a GNU externsion */
- while ((l = getline(&line, &n, fp)) > 0) {
+ while ((l = fgets(line, n, fp)) > 0) {
l = preprocess_line(line, l);
if (l > 0) {
char *p;