From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20379 invoked by alias); 12 Sep 2012 18:41:28 -0000 Received: (qmail 20370 invoked by uid 22791); 12 Sep 2012 18:41:27 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 Sep 2012 18:41:11 +0000 Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 0A05520FDA for ; Wed, 12 Sep 2012 14:41:11 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute6.internal (MEProxy); Wed, 12 Sep 2012 14:41:11 -0400 Received: from [158.147.137.79] (unknown [158.147.137.79]) by mail.messagingengine.com (Postfix) with ESMTPA id AE9AC8E020D; Wed, 12 Sep 2012 14:41:10 -0400 (EDT) Message-ID: <5050D73D.7060106@cwilson.fastmail.fm> Date: Wed, 12 Sep 2012 18:58:00 -0000 From: Charles Wilson Reply-To: Charles Wilson User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: (core dumped) mkshortcut References: <7770DC1B-52FD-4A10-81D7-8B31B0425EB6@Denis-Excoffier.org> <504EF556.3000500@gmail.com> <505084BC.8050706@lysator.liu.se> In-Reply-To: <505084BC.8050706@lysator.liu.se> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-09/txt/msg00156.txt.bz2 On 9/12/2012 8:49 AM, Peter Rosin wrote: > --- src/mkshortcut/mkshortcut.c.orig 2012-04-13 05:12:18.000000000 +0200 > +++ src/mkshortcut/mkshortcut.c 2012-09-12 14:46:02.962381900 +0200 > @@ -395,7 +395,7 @@ > xstrncat (char **dest, const char *add, size_t n) > { > size_t len = strlen (*dest) + n; > - char *s = (char *) realloc (*dest, len * sizeof (char)); > + char *s = (char *) realloc (*dest, len * sizeof (char) + 1); > if (!s) > { > fprintf (stderr, "%s: out of memory\n", program_name); > Thanks, Peter. I'll roll a new release within the next few days. -- Chuck -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple