From: = <4265913+mikebrady@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:20:03 +0000 (+0100) Subject: fix inversion of number and size arguments in a calloc X-Git-Tag: 4.3.4-dev~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fb152a5f58c890a558543dca5c3cd3865706693;p=thirdparty%2Fshairport-sync.git fix inversion of number and size arguments in a calloc --- diff --git a/rtsp.c b/rtsp.c index d3392c95..3cbde4ff 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;