all repos — cgit @ 6a575b8900734a4640427416885e73c83af70736

a hyperfast web frontend for git written in c

use correct type for sizeof

**L would have worked well too.  Depending on the distribution sizeof *L
may return 8 instead of 4. **L is preferable, but since we don't expect
this datatype to change very often, sizeof int is less subtle and easier
to understand.

Signed-off-by: Jamie Couture <jamie.couture@gmail.com>
Jamie Couture jamie.couture@gmail.com
Wed, 11 Jan 2012 22:38:49 -0500
commit

6a575b8900734a4640427416885e73c83af70736

parent

19c31231fac828bb336db67b8cccc871bea1500e

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M ui-ssdiff.cui-ssdiff.c

@@ -23,7 +23,7 @@ {

int i; if (L != NULL) { - memset(*L, 0, sizeof(*L) * MAX_SSDIFF_SIZE); + memset(*L, 0, sizeof(int) * MAX_SSDIFF_SIZE); return; }