From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from acme.spoerlein.net (acme.spoerlein.net [88.198.49.12]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id r4H0TBKP032463 for ; Thu, 16 May 2013 20:29:12 -0400 (EDT) Received: from localhost (acme.spoerlein.net [IPv6:2a01:4f8:131:23c2::1]) by acme.spoerlein.net (8.14.7/8.14.6) with ESMTP id r4H0TAIg029470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 17 May 2013 02:29:10 +0200 (CEST) (envelope-from uqs@spoerlein.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spoerlein.net; s=dkim200908; t=1368750550; bh=0BCZVdTfctIvfASFmG4K1ZqCPLff9mylS3yvq+ZFw8Q=; h=Date:From:To:Subject; b=YwWzfaTCpVSOuoK+ibyfYTArke+Y3U1TuIQbdNkywv4w4+m4QiUcCK8PPL0jFKeGk h+0QlL/XxnvGpx1VUQ73FWY83slMs3dFcVN16MnWGYlVSFCjccw7KCbYLXKliYrkxO GCGeco49jiZHnanYICDeiS/9un78qoWKCQof07Wo= Date: Fri, 17 May 2013 02:29:10 +0200 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: tech@mdocml.bsd.lv Subject: [patch] fix wrong argument for calloc Message-ID: <20130517002910.GX2055@acme.spoerlein.net> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="X+8siUETKMkW99st" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) --X+8siUETKMkW99st Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hey, simple patch, please commit. This was found by Coverity Scan CID 978734, please mention that in the commit message. Thanks. --X+8siUETKMkW99st Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="chars.diff" Index: chars.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/chars.c,v retrieving revision 1.52 diff -u -p -r1.52 chars.c --- chars.c 8 Nov 2011 00:15:23 -0000 1.52 +++ chars.c 17 May 2013 00:17:18 -0000 @@ -77,7 +77,7 @@ mchars_alloc(void) */ tab = mandoc_malloc(sizeof(struct mchars)); - htab = mandoc_calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **)); + htab = mandoc_calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln *)); for (i = 0; i < LINES_MAX; i++) { hash = (int)lines[i].code[0] - PRINT_LO; --X+8siUETKMkW99st-- -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv