From c4dbe4da01d2c675c797b68a72e35ba3c2e3d123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Rosick=C3=BD?= Date: Fri, 10 Jan 2025 00:40:58 +0100 Subject: [PATCH] swap calloc arguments --- api/gutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/gutil.cpp b/api/gutil.cpp index ad4a5d8e8a6..58e4dd69f13 100644 --- a/api/gutil.cpp +++ b/api/gutil.cpp @@ -470,7 +470,7 @@ void STARFIELD::build_stars(int sz, float sp) { nstars=sz; if (stars) free(stars); - stars = (STAR*)calloc(sizeof(STAR), (long unsigned int)nstars); + stars = (STAR*)calloc((long unsigned int)nstars, sizeof(STAR)); if (!stars) { fprintf(stderr, "out of mem in STARFIELD::build_stars"); sz = 0;