Mercurial > libavformat.hg
comparison rtpproto.c @ 2193:5ce5fad0dfac libavformat
replace the uses of old string functions that Reimar missed
author | mru |
---|---|
date | Sun, 24 Jun 2007 11:27:12 +0000 |
parents | c5a3a1f884a4 |
children | d16d62d4528f |
comparison
equal
deleted
inserted
replaced
2192:c97fab0f9803 | 2193:5ce5fad0dfac |
---|---|
17 * You should have received a copy of the GNU Lesser General Public | 17 * You should have received a copy of the GNU Lesser General Public |
18 * License along with FFmpeg; if not, write to the Free Software | 18 * License along with FFmpeg; if not, write to the Free Software |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 */ | 20 */ |
21 #include "avformat.h" | 21 #include "avformat.h" |
22 #include "avstring.h" | |
22 | 23 |
23 #include <unistd.h> | 24 #include <unistd.h> |
24 #include <stdarg.h> | 25 #include <stdarg.h> |
25 #include "network.h" | 26 #include "network.h" |
26 #include <fcntl.h> | 27 #include <fcntl.h> |
70 char buf1[1024]; | 71 char buf1[1024]; |
71 va_list ap; | 72 va_list ap; |
72 | 73 |
73 va_start(ap, fmt); | 74 va_start(ap, fmt); |
74 if (strchr(buf, '?')) | 75 if (strchr(buf, '?')) |
75 pstrcat(buf, buf_size, "&"); | 76 av_strlcat(buf, "&", buf_size); |
76 else | 77 else |
77 pstrcat(buf, buf_size, "?"); | 78 av_strlcat(buf, "?", buf_size); |
78 vsnprintf(buf1, sizeof(buf1), fmt, ap); | 79 vsnprintf(buf1, sizeof(buf1), fmt, ap); |
79 pstrcat(buf, buf_size, buf1); | 80 av_strlcat(buf, buf1, buf_size); |
80 va_end(ap); | 81 va_end(ap); |
81 } | 82 } |
82 | 83 |
83 static void build_udp_url(char *buf, int buf_size, | 84 static void build_udp_url(char *buf, int buf_size, |
84 const char *hostname, int port, | 85 const char *hostname, int port, |