$OpenBSD: patch-src_libjasper_jpc_jpc_util_c,v 1.1 2008/05/17 09:32:16 espie Exp $ --- src/libjasper/jpc/jpc_util.c.orig Fri May 16 21:00:25 2008 +++ src/libjasper/jpc/jpc_util.c Fri May 16 21:09:30 2008 @@ -109,7 +109,7 @@ int jpc_atoaf(char *s, int *numvalues, double **values } if (n) { - if (!(vs = jas_malloc(n * sizeof(double)))) { + if (!(vs = jas_alloc2(n, sizeof(double)))) { return -1; }