We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4362c8c commit c4dbe4dCopy full SHA for c4dbe4d
api/gutil.cpp
@@ -470,7 +470,7 @@ void STARFIELD::build_stars(int sz, float sp) {
470
nstars=sz;
471
472
if (stars) free(stars);
473
- stars = (STAR*)calloc(sizeof(STAR), (long unsigned int)nstars);
+ stars = (STAR*)calloc((long unsigned int)nstars, sizeof(STAR));
474
if (!stars) {
475
fprintf(stderr, "out of mem in STARFIELD::build_stars");
476
sz = 0;
0 commit comments