diff options
author | Brendan Cully <brendan@kublai.com> | 2005-10-21 04:35:37 +0000 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2005-10-21 04:35:37 +0000 |
commit | 57b2680edee942497d9752e8be5741b181493a50 (patch) | |
tree | c6761a63c9ea591556fec61486d3d5fdc096ece7 /edit.c | |
parent | d6fb4ea49daf00a0747cc7de75cc6289e539027e (diff) |
Full large file support. Keep a close watch on your mailboxes everyone!
Diffstat (limited to 'edit.c')
-rw-r--r-- | edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -61,7 +61,7 @@ static char* EditorHelp2 = N_("\ . on a line by itself ends input\n"); static char ** -be_snarf_data (FILE *f, char **buf, int *bufmax, int *buflen, int offset, +be_snarf_data (FILE *f, char **buf, int *bufmax, int *buflen, LOFF_T offset, int bytes, int prefix) { char tmp[HUGE_STRING]; @@ -77,7 +77,7 @@ be_snarf_data (FILE *f, char **buf, int *bufmax, int *buflen, int offset, tmplen = sizeof (tmp) - tmplen; } - fseek (f, offset, 0); + fseeko (f, offset, 0); while (bytes > 0) { if (fgets (p, tmplen - 1, f) == NULL) break; |