mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-16 21:19:33 +00:00
FS-11721 fix data length of stripped html
This commit is contained in:
parent
daf424880a
commit
23e050618d
@ -1045,7 +1045,7 @@ static switch_status_t sofia_read_text_frame(switch_core_session_t *session, swi
|
|||||||
if (msrp_h_content_type && !strcasecmp(msrp_h_content_type, "message/cpim")) {
|
if (msrp_h_content_type && !strcasecmp(msrp_h_content_type, "message/cpim")) {
|
||||||
char *stripped_text = switch_html_strip((char *)rframe->data);
|
char *stripped_text = switch_html_strip((char *)rframe->data);
|
||||||
memcpy(rframe->data, stripped_text, strlen(stripped_text)+1);
|
memcpy(rframe->data, stripped_text, strlen(stripped_text)+1);
|
||||||
rframe->datalen = strlen(stripped_text)+1;
|
rframe->datalen = strlen(stripped_text);
|
||||||
free(stripped_text);
|
free(stripped_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user