diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-11-23 18:58:35 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-11-23 18:58:35 +0000 |
commit | a974bbd8dd5d248923f9f3c059f3cd85e278e2e7 (patch) | |
tree | 405dbb815829ea6f321f2e694a6a02c283dcc944 /lang/open-cobol-devel/files/patch-libcob::fileio.c | |
parent | Maintainer no longer uses this software. (diff) |
Update to version 0.30
PR: ports/74245
Submitted by: Ports Fury
Notes
Notes:
svn path=/head/; revision=122237
Diffstat (limited to '')
-rw-r--r-- | lang/open-cobol-devel/files/patch-libcob::fileio.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lang/open-cobol-devel/files/patch-libcob::fileio.c b/lang/open-cobol-devel/files/patch-libcob::fileio.c deleted file mode 100644 index d96315e95d73..000000000000 --- a/lang/open-cobol-devel/files/patch-libcob::fileio.c +++ /dev/null @@ -1,20 +0,0 @@ ---- libcob/fileio.c.orig Wed Jun 11 15:40:20 2003 -+++ libcob/fileio.c Wed Aug 27 09:57:31 2003 -@@ -202,13 +202,10 @@ - else - { - /* discard input until the next newline */ -- int c = getc (f->file); -- while (c != '\r' && c != '\n' && c != EOF) -- c = getc (f->file); -- if (c == '\r') -- c = getc (f->file); -- if (c != '\n' && c != EOF) -- ungetc (c, f->file); -+ char buff[BUFSIZ]; -+ while (fgets (buff, BUFSIZ, f->file) !=NULL) -+ if (strchr (buff, '\n') != NULL) -+ break; - } - - memcpy (f->record->data, buff, f->record->size); |