- memcpy (LI->Line, Line, Len+1);
-
- /* Replace tabs by spaces in the given line since tabs will give rather
- * arbitrary results when used in the output later, and if we do it here,
- * we won't need another copy.
- */
- S = LI->Line;
- while (*S) {
- if (*S == '\t') {
- *S = ' ';
- }
- ++S;
+
+ /* Copy the line, replacing tabs by spaces in the given line since tabs
+ ** will give rather arbitrary results when used in the output later, and
+ ** if we do it here, we won't need another copy later.
+ */
+ T = LI->Line;
+ while (Len--) {
+ if (*S == '\t') {
+ *T = ' ';
+ } else {
+ *T = *S;
+ }
+ ++S;
+ ++T;