On 08/26/2014 11:19 AM, Ralph Corderoy wrote:
...
>                 progname = malloc(strlen(p) + 1);
> 
> Can malloc fail on VMS?
...
>                 if (0 == strcasecmp(&progname[len - 4], ".exe"))
> 
> What if len is less than 4?

Parsing the file specification myself wasn't a good idea. I should have
known better. I'll change the code and let VMS do the parsing. This code
is in a VMS specific source anyway. And I'll use xmalloc() as pointed
out by Paul.

Thanks for reviewing the code,
Hartmut


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to