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