Mercurial > libavformat.hg
changeset 5569:346dce85a801 libavformat
Pretty embarassing bug; we shouldn't use av_strlcatf() on an uninitialized
buffer, that is doomed to not work at some point.
author | rbultje |
---|---|
date | Thu, 21 Jan 2010 19:48:30 +0000 |
parents | 1cdf9bbfbc7f |
children | c1843162bd3d |
files | rtsp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rtsp.c Thu Jan 21 17:10:13 2010 +0000 +++ b/rtsp.c Thu Jan 21 19:48:30 2010 +0000 @@ -1589,7 +1589,7 @@ if (!rt->need_subscription) { if (memcmp (cache, rt->real_setup_cache, sizeof(enum AVDiscard) * s->nb_streams)) { - av_strlcatf(cmd, sizeof(cmd), + snprintf(cmd, sizeof(cmd), "SET_PARAMETER %s RTSP/1.0\r\n" "Unsubscribe: %s\r\n", s->filename, rt->last_subscription);