From: Jim Meyering Date: Sat, 25 Mar 1995 21:09:34 +0000 (+0000) Subject: (fold_file): Declare offset_out size_t. X-Git-Tag: textutils-1_12_1~243 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09dec6f72ff79737f7171722539abfee8f1a8c3f;p=thirdparty%2Fcoreutils.git (fold_file): Declare offset_out size_t. --- 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]);