summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Eyes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eyes.c b/Eyes.c
index 11a1f8e..87809c8 100644
--- a/Eyes.c
+++ b/Eyes.c
@@ -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;