Revert "Preserve one byte for end of string character in form_update_line()"
This reverts commit a4152aaaea.
This commit is contained in:
1 parent
b3805049f2
commit
971b0c1cf9
1 file changed
+1
-1
@@ -319,7 +319,7 @@ form_update_line(Line *line, char **str, int spos, int epos, int width,
|
|||||||
}
|
}
|
||||||
pos += width - w;
|
pos += width - w;
|
||||||
|
|
||||||
len = line->len + pos + spos - epos + 1;
|
len = line->len + pos + spos - epos;
|
||||||
buf = New_N(char, len);
|
buf = New_N(char, len);
|
||||||
prop = New_N(Lineprop, len);
|
prop = New_N(Lineprop, len);
|
||||||
bcopy((void *)line->lineBuf, (void *)buf, spos * sizeof(char));
|
bcopy((void *)line->lineBuf, (void *)buf, spos * sizeof(char));
|
||||||
|
|||||||
Reference in new issue
Block a user