diff --git a/api/gutil.cpp b/api/gutil.cpp index ad4a5d8e8a..58e4dd69f1 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;