# HG changeset patch # User rbultje # Date 1264103310 0 # Node ID 346dce85a801d5ff0429f6d72be2791821557089 # Parent 1cdf9bbfbc7fbab7034be16e4d9f304902c42d53 Pretty embarassing bug; we shouldn't use av_strlcatf() on an uninitialized buffer, that is doomed to not work at some point. diff -r 1cdf9bbfbc7f -r 346dce85a801 rtsp.c --- 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);