If I have the following:
if (c == '\n')
{
line_out[offset_out++] = c;
line_out = (char *) realloc ((void *)line_out, allocated_out+1);
/* line_out[offset_out+1] = '\0'; */
strncat (*outstr, line_out, offset_out);
column = offset_out =
On 7 November 2015 at 14:54, Alan Wehmann wrote:
> Here is the Diff output:
>
> diff -u install-info.c install-info-fixed.c
> --- install-info.c 2015-02-27 12:57:27.0 -0600
> +++ install-info-fixed.c2015-11-07 08:48:36.0 -0600
> @@ -1445,6 +1445,8 @@
>if (c ==
Here is the Diff output:
diff -u install-info.c install-info-fixed.c
--- install-info.c 2015-02-27 12:57:27.0 -0600
+++ install-info-fixed.c2015-11-07 08:48:36.0 -0600
@@ -1445,6 +1445,8 @@
if (c == '\n')
{
line_out[offset_out++] = c;
+
On 4 November 2015 at 18:38, Alan Wehmann wrote:
> In "install-info_orig_seq.c" the line:
>
> 1447 strncat (*outstr, line_out, offset_out);
>
> is where the error occurred.
>
> After some study I decided to try making sure that "line_out" is terminated
> by a '\0' character, so I hav
On 4 November 2015 at 18:38, Alan Wehmann wrote:
In "install-info_orig_seq.c" the line:
1447 strncat (*outstr, line_out, offset_out);
is where the error occurred.
> After some study I decided to try making sure that "line_out" is terminated
> by a '\0' character, so I have the code