mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-23 18:04:07 +00:00
FS-10128 [mod_v8] This commit removes strlen() in favor of binary safe .length() function
This commit is contained in:
parent
90eb89dbd0
commit
fabe27abde
@ -140,7 +140,7 @@ JS_SOCKET_FUNCTION_IMPL(Send)
|
||||
switch_status_t ret;
|
||||
String::Utf8Value str(info[0]);
|
||||
const char *buffer = js_safe_str(*str);
|
||||
switch_size_t len = strlen(buffer);
|
||||
switch_size_t len = str.length(); // binary safe version of strlen()
|
||||
ret = switch_socket_send(this->_socket, buffer, &len);
|
||||
|
||||
if (ret != SWITCH_STATUS_SUCCESS) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user