(fold_file): Declare offset_out size_t.
authorJim Meyering <jim@meyering.net>
Sat, 25 Mar 1995 21:09:34 +0000 (21:09 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 25 Mar 1995 21:09:34 +0000 (21:09 +0000)
src/fold.c

index a6df374..1da75cc 100644 (file)
@@ -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]);