On 2015/04/07 19:14, Stuart Cassoff wrote:
> On 03/02/15 08:12, Andrey Skvortsov wrote:
> 
> 
> I think the % should go, or change the sprintf() to strcpy() or something 
> else.

> +  sprintf(cmd,"%${PREFIX}/bin/tkgate",TkGate.homedir);

Yes, this is clearly wrong - at least kill the % and TkGate.homedir.

sprintf(cmd,"${PREFIX}/bin/tkgate");

Though I suppose cmd and the sprintf could probably just be removed and
specify it directly on the execl() line,

execl("${PREFIX}/bin/tkgate","${PREFIX}/bin/tkgate","-Vq",name,(char*)NULL);

Reply via email to