summaryrefslogtreecommitdiff
path: root/libavformat/rtpproto.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-06-17 10:31:11 +0300
committerMartin Storsjö <martin@martin.st>2011-06-23 20:17:46 +0300
commit9abbe8cc136e7fbc69004df3f1de9d54c40d969d (patch)
treeeaa9dcee4f92e3a4cfb0911d4cd1eb6a0ae92813 /libavformat/rtpproto.c
parent67e9ae14d93aeee019bf65d38192ca5c75dc99dd (diff)
Use av_printf_format to check the usage of printf style functions
This helps catching cases where the format string doesn't match what is passed in, or injection bugs where user data is passed in as format string. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpproto.c')
-rw-r--r--libavformat/rtpproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index 1340665c74..dba1d35b03 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -86,7 +86,7 @@ int rtp_set_remote_url(URLContext *h, const char *uri)
* "http://host:port/path?option1=val1&option2=val2...
*/
-static void url_add_option(char *buf, int buf_size, const char *fmt, ...)
+static av_printf_format(3, 4) void url_add_option(char *buf, int buf_size, const char *fmt, ...)
{
char buf1[1024];
va_list ap;