Commit 93fe4cc929 for freeswitch.com
commit 93fe4cc929a23c55d783940be7245638d46aee72
Author: Dmitry Verenitsin <morbit85@gmail.com>
Date: Wed Nov 4 19:39:46 2026 +0500
[core] Treat the MSRP To-Path as data in msrp_find_uuid()
`msrp_find_uuid()` passed the tail of the received To-Path as the
format argument of `switch_snprintf()`. Pass it through `"%s"`.
diff --git a/src/switch_msrp.c b/src/switch_msrp.c
index 9d64036f9e..5c8578be50 100644
--- a/src/switch_msrp.c
+++ b/src/switch_msrp.c
@@ -1077,7 +1077,7 @@ static switch_bool_t msrp_find_uuid(char *uuid, const char *to_path)
}
if (slash_count < 3) return SWITCH_FALSE;
if (len - i++ < 36) return SWITCH_FALSE;
- switch_snprintf(uuid, 37, to_path + i);
+ switch_snprintf(uuid, 37, "%s", to_path + i);
return SWITCH_TRUE;
}