From: Charles Wilson <cygwin@cwilson.fastmail.fm>
To: cygwin@cygwin.com
Subject: Re: (core dumped) mkshortcut
Date: Wed, 12 Sep 2012 18:58:00 -0000 [thread overview]
Message-ID: <5050D73D.7060106@cwilson.fastmail.fm> (raw)
In-Reply-To: <505084BC.8050706@lysator.liu.se>
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
prev parent reply other threads:[~2012-09-12 18:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-09 4:43 Robert Mark
2012-09-09 17:34 ` Earnie Boyd
2012-09-10 11:59 ` Robert Mark
2012-09-10 13:00 ` Earnie Boyd
2012-09-10 19:20 ` Denis Excoffier
2012-09-11 5:58 ` Earnie Boyd
2012-09-11 8:00 ` Pawel Jasinski
2012-09-11 8:25 ` Pawel Jasinski
2012-09-11 12:18 ` marco atzeri
2012-09-12 12:21 ` Robert Mark
2012-09-12 13:33 ` Andrey Repin
2012-09-12 21:33 ` Andrey Repin
2012-09-12 13:02 ` Peter Rosin
2012-09-12 18:58 ` Charles Wilson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5050D73D.7060106@cwilson.fastmail.fm \
--to=cygwin@cwilson.fastmail.fm \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).