python312Packages.llama-index: 0.12.9 -> 0.12.9.post1 (#371957)
[NixPkgs.git] / pkgs / by-name / li / libbladeRF / gcc-14-calloc-fixes.diff
blobae11b26073b68f2b88543d9c16d8bb8aec3fe824
1 diff --git a/host/utilities/bladeRF-fsk/c/src/fir_filter.c b/host/utilities/bladeRF-fsk/c/src/fir_filter.c
2 index 59f34f0..7def697 100644
3 --- a/host/utilities/bladeRF-fsk/c/src/fir_filter.c
4 +++ b/host/utilities/bladeRF-fsk/c/src/fir_filter.c
5 @@ -213,18 +213,18 @@ int main(int argc, char *argv[])
6 return EXIT_FAILURE;
9 - inbuf = calloc(2*sizeof(int16_t), chunk_size);
10 + inbuf = calloc(chunk_size, 2*sizeof(int16_t));
11 if (!inbuf) {
12 perror("calloc");
13 goto out;
15 - tempbuf = calloc(2*sizeof(int16_t), chunk_size);
16 + tempbuf = calloc(chunk_size, 2*sizeof(int16_t));
17 if (!tempbuf) {
18 perror("calloc");
19 goto out;
22 - outbuf = calloc(sizeof(struct complex_sample), chunk_size);
23 + outbuf = calloc(chunk_size, sizeof(struct complex_sample));
24 if (!outbuf) {
25 perror("calloc");
26 goto out;