From 5fb152a5f58c890a558543dca5c3cd3865706693 Mon Sep 17 00:00:00 2001 From: = <4265913+mikebrady@users.noreply.github.com> Date: Fri, 26 Apr 2024 11:20:03 +0100 Subject: [PATCH] fix inversion of number and size arguments in a calloc --- rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtsp.c b/rtsp.c index d3392c957..3cbde4ff8 100644 --- a/rtsp.c +++ b/rtsp.c @@ -951,7 +951,7 @@ void add_flush_request(int flushNow, uint32_t flushFromSeq, uint32_t flushFromTS if ((u == NULL) || ((u->flushNow == 0) && (flushNow != 0)) || (flushFromSeq < u->flushFromSeq) || ((flushFromSeq == u->flushFromSeq) && (flushFromTS < u->flushFromTS))) { - flush_request_t *n = (flush_request_t *)calloc(sizeof(flush_request_t), 1); + flush_request_t *n = (flush_request_t *)calloc(1, sizeof(flush_request_t)); n->flushNow = flushNow; n->flushFromSeq = flushFromSeq; n->flushFromTS = flushFromTS;