1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

bug 968: fixed.

This commit is contained in:
Witold Filipczyk 2007-07-29 16:17:11 +02:00 committed by Witold Filipczyk
parent 3dbf4d3d1d
commit cd8008225c

View File

@ -1133,8 +1133,9 @@ justify_line(struct html_context *html_context, int y)
new_start = word_start + word_shift;
/* Copy the original word, without any spaces. */
copy_chars(html_context, new_start, y, word_len,
&line[word_start]);
if (word_len)
copy_chars(html_context, new_start, y,
word_len, &line[word_start]);
/* Copy the space that preceded the word,
* duplicating it as many times as necessary.