Menu

#17 Option '-in_cfg-' isn't work

open
nobody
None
5
2005-10-11
2005-10-11
Anonymous
No

Command line option '-in_cfg-' isn't work.

example :
gc -file-main.c -in_cfg-mytest.cfg

gz_CfgFileName in config.c is char*, but strcpy() is used to
direct copying without allocation.

Maybe _strdup() is needed.

- strcpy(gz_CfgFileName, ptest);
+ gz_CfgFileName = _strdup(ptest);

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.