summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-03-25 21:09:34 +0000
committerJim Meyering <jim@meyering.net>1995-03-25 21:09:34 +0000
commit09dec6f72ff79737f7171722539abfee8f1a8c3f (patch)
tree6f5bb9b4a62e15ca8e205845d3f5a97e9d7dbc85
parent42357adff592d5577d2a3c371663a0c025d4c392 (diff)
downloadcoreutils-09dec6f72ff79737f7171722539abfee8f1a8c3f.tar.xz
(fold_file): Declare offset_out size_t.
-rw-r--r--src/fold.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fold.c b/src/fold.c
index a6df3747c..1da75ccb7 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]);