Patch applied. Thanks

Enrico Scholz wrote:
> Hi,
> 
> cfagent of cfengine-2.2.3 can access cfargv[argc] in
> 
> | for (i = 1, j = 1; i < argc; i++)
> | ...
> | cfargv[j] = NULL;
> 
> but allocates only
> 
> | malloc(sizeof(char *) * cfargc + 1);
> 
> bytes. Attached patch fixes this.
> 
> 
> 
> Enrico
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/bug-cfengine

-- 


Mark Burgess

Web: http://www.iu.hio.no/~mark
Tlf: +47 22453272
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to