mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 07:04:17 +00:00
Leave room for switch_escape_string to add a terminating null
Thanks-to: Nathan Neulinger <nneul@mst.edu> FS-5448 --resolve
This commit is contained in:
1 parent
ab641842f4
commit
3dd2376475
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -2088,7 +2088,7 @@ SWITCH_DECLARE(char *) switch_escape_string(const char *in, char *out, switch_si
|
||||
|
||||
SWITCH_DECLARE(char *) switch_escape_string_pool(const char *in, switch_memory_pool_t *pool)
|
||||
{
|
||||
int len = strlen(in) * 2;
|
||||
int len = strlen(in) * 2 + 1;
|
||||
char *buf = switch_core_alloc(pool, len);
|
||||
return switch_escape_string(in, buf, len);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user