Commit 7a2675b4 authored by Tatsuya Kinoshita's avatar Tatsuya Kinoshita

Prevent infinite loop in feed_textarea()

Bug-Debian: https://github.com/tats/w3m/issues/85
parent 5d665be8
...@@ -4093,7 +4093,9 @@ feed_textarea(char *str) ...@@ -4093,7 +4093,9 @@ feed_textarea(char *str)
Strcat_charp(textarea_str[n_textarea], "\r\n"); Strcat_charp(textarea_str[n_textarea], "\r\n");
str++; str++;
} }
else if (*str != '\r') else if (*str == '\r')
str++;
else
Strcat_char(textarea_str[n_textarea], *(str++)); Strcat_char(textarea_str[n_textarea], *(str++));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment