From 09dec6f72ff79737f7171722539abfee8f1a8c3f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 25 Mar 1995 21:09:34 +0000 Subject: [PATCH] (fold_file): Declare offset_out size_t. --- src/fold.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fold.c b/src/fold.c index a6df3747cc..1da75ccb70 100644 --- a/src/fold.c +++ b/src/fold.c @@ -176,7 +176,7 @@ fold_file (filename, width) FILE *istream; register int c; int column = 0; /* Screen column where next char will go. */ - int offset_out = 0; /* Index in `line_out' for next char. */ + size_t offset_out = 0; /* Index in `line_out' for next char. */ static char *line_out = NULL; static size_t allocated_out = 0; @@ -238,7 +238,7 @@ fold_file (filename, width) /* Move the remainder to the beginning of the next line. The areas being copied here might overlap. */ memmove (line_out, line_out + logical_end, - offset_out - logical_end); + offset_out - logical_end); offset_out -= logical_end; for (column = i = 0; i < offset_out; i++) column = adjust_column (column, line_out[i]); -- 2.47.3