mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
add_html_to_string: Also restore the '\0' terminator.
This commit is contained in:
parent
14d79f6c91
commit
7e86205902
@ -284,6 +284,7 @@ add_html_to_string(struct string *string, const unsigned char *src, int len)
|
|||||||
|| !add_long_to_string(string, (long) *src)
|
|| !add_long_to_string(string, (long) *src)
|
||||||
|| !add_char_to_string(string, ';')) {
|
|| !add_char_to_string(string, ';')) {
|
||||||
string->length = rollback_length;
|
string->length = rollback_length;
|
||||||
|
string->source[rollback_length] = '\0';
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user