diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-12-17 15:44:36 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-12-17 15:44:36 +0000 |
commit | 7a2675b4a5680d44645e72c4ec1258746a6e1b66 (patch) | |
tree | 206c0d03d11155f7cfb0d44c750b5505d713c92c /file.c | |
parent | Revert "Prevent overflow beyond the end of string in form_update_line()" (diff) | |
download | w3m-7a2675b4a5680d44645e72c4ec1258746a6e1b66.tar.gz w3m-7a2675b4a5680d44645e72c4ec1258746a6e1b66.zip |
Prevent infinite loop in feed_textarea()
Bug-Debian: https://github.com/tats/w3m/issues/85
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4093,7 +4093,9 @@ feed_textarea(char *str) Strcat_charp(textarea_str[n_textarea], "\r\n"); str++; } - else if (*str != '\r') + else if (*str == '\r') + str++; + else Strcat_char(textarea_str[n_textarea], *(str++)); } } |