mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 22:24:16 +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
@@ -2516,7 +2516,7 @@ static int web_callback(void *pArg, int argc, char **argv, char **columnNames)
|
||||
strcmp(argv[10], URGENT_FLAG_STRING) ? "normal" : "urgent", create_date, heard, duration_str);
|
||||
|
||||
switch_snprintf(title_b4, sizeof(title_b4), "%s <%s> %s", argv[5], argv[6], rss_date);
|
||||
switch_url_encode(title_b4, title_aft, sizeof(title_aft)-1);
|
||||
switch_url_encode(title_b4, title_aft, sizeof(title_aft));
|
||||
|
||||
holder->stream->write_function(holder->stream,
|
||||
"<br><object width=550 height=15 \n"
|
||||
|
||||
Reference in new issue
Block a user