summaryrefslogtreecommitdiffstats
path: root/edit.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2005-10-21 04:35:37 +0000
committerBrendan Cully <brendan@kublai.com>2005-10-21 04:35:37 +0000
commit57b2680edee942497d9752e8be5741b181493a50 (patch)
treec6761a63c9ea591556fec61486d3d5fdc096ece7 /edit.c
parentd6fb4ea49daf00a0747cc7de75cc6289e539027e (diff)
Full large file support. Keep a close watch on your mailboxes everyone!
Diffstat (limited to 'edit.c')
-rw-r--r--edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/edit.c b/edit.c
index eb50e4f4..d952e9a2 100644
--- a/edit.c
+++ b/edit.c
@@ -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;