From 6a32252403781b303d4ebd195932ce39c5b1c08e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 30 Jul 2019 16:03:58 +0200 Subject: Update to 5.43 --- hacks/glx/gears.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hacks/glx/gears.c') diff --git a/hacks/glx/gears.c b/hacks/glx/gears.c index feaae8c..86e7e97 100644 --- a/hacks/glx/gears.c +++ b/hacks/glx/gears.c @@ -1,4 +1,4 @@ -/* gears, Copyright (c) 2007-2014 Jamie Zawinski +/* gears, Copyright (c) 2007-2019 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -684,7 +684,7 @@ planetary_gears (ModeInfo *mi) g0->spokes = 0; g0->size = INVOLUTE_LARGE; - bp->gears = (gear **) calloc (6, sizeof(**bp->gears)); + bp->gears = (gear **) calloc (6, sizeof(*bp->gears)); bp->ngears = 0; bp->gears[bp->ngears++] = g1; @@ -768,7 +768,7 @@ init_gears (ModeInfo *mi) if (total_gears <= 0) total_gears = 3 + fabs (BELLRAND (8) - 4); /* 3 - 7, mostly 3. */ - bp->gears = (gear **) calloc (total_gears+2, sizeof(**bp->gears)); + bp->gears = (gear **) calloc (total_gears+2, sizeof(*bp->gears)); bp->ngears = 0; for (i = 0; i < total_gears; i++) -- cgit v1.2.3-55-g7522