]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
fix inversion of number and size arguments in a calloc
author= <4265913+mikebrady@users.noreply.github.com>
Fri, 26 Apr 2024 10:20:03 +0000 (11:20 +0100)
committer= <4265913+mikebrady@users.noreply.github.com>
Fri, 26 Apr 2024 10:20:03 +0000 (11:20 +0100)
rtsp.c

diff --git a/rtsp.c b/rtsp.c
index d3392c9579505809aefccba02da6800be7ce2bd9..3cbde4ff878abb685e781a95af45be28b6ab4aa5 100644 (file)
--- 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;