mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 14:44:17 +00:00
switch_url_encode now takes the full length of the buffer and null-terminates the string properly (Klocwork #1030)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8510 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
a35dddbfc0
commit
5d91bea365
6 files changed
+16
-14
No files matched your search
@@ -1017,7 +1017,7 @@ static int web_callback(void *pArg, int argc, char **argv, char **columnNames)
|
||||
argv[1], argv[4], argv[5], argv[7], argv[8] ? argv[8] : "N/A", argv[9] ? argv[9] : "N/A", argv[10], argv[11]);
|
||||
|
||||
snprintf(title_b4, sizeof(title_b4), "%s <%s>", argv[4], argv[5]);
|
||||
switch_url_encode(title_b4, title_aft, sizeof(title_aft)-1);
|
||||
switch_url_encode(title_b4, title_aft, sizeof(title_aft));
|
||||
|
||||
mp3 = switch_mprintf("http://%s:%s%s/mp3/%s/%s.mp3", holder->host, holder->port, holder->uri, argv[0], argv[5]);
|
||||
m3u = switch_mprintf("http://%s:%s%s/m3u/mp3/%s/%s.mp3.m3u", holder->host, holder->port, holder->uri, argv[0], argv[5]);
|
||||
|
||||
Reference in new issue
Block a user