bugfix: calloc arguments' wrong order

This commit is contained in:
Cedric Roux
2016-05-10 10:01:45 +02:00
parent 497c64a964
commit b04a448b62
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -258,8 +258,8 @@ void xy_plot_set_points(gui *_gui, widget *_this, int plot,
if (npoints != this->plots[plot].npoints) {
free(this->plots[plot].x);
free(this->plots[plot].y);
this->plots[plot].x = calloc(sizeof(float), npoints);
this->plots[plot].y = calloc(sizeof(float), npoints);
this->plots[plot].x = calloc(npoints, sizeof(float));
this->plots[plot].y = calloc(npoints, sizeof(float));
this->plots[plot].npoints = npoints;
}