diff options
-rw-r--r-- | Eyes.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -129,7 +129,7 @@ static EyeLayout layout_biblical[] = { static EyeConfiguration *EyesConfigure(Boolean biblically_accurate) { - EyeConfiguration *c = calloc(sizeof(EyeConfiguration), 1); + EyeConfiguration *c = calloc(1, sizeof(EyeConfiguration)); assert(c != NULL); if (biblically_accurate) { @@ -406,7 +406,7 @@ static void Initialize ( #endif EyeConfiguration *config = EyesConfigure(w->eyes.biblically_accurate); - TPoint *pupils = calloc(sizeof(TPoint), config->count); + TPoint *pupils = calloc(config->count, sizeof(TPoint)); assert(pupils != NULL); for (int j = 0; j < config->count; j++) { pupils[j].x = TPOINT_NONE; |