get_self_executable() returns address of local variable
Posted: Sun Jun 13, 2010 9:14 am
Hi,
Yesterday I downloaded t-engine4-src-1.0.0beta3 from http://tome.te4.org/download. In src/getself.c I found
The storage class of res should probably be static.
Lorsch
Yesterday I downloaded t-engine4-src-1.0.0beta3 from http://tome.te4.org/download. In src/getself.c I found
Code: Select all
const char *get_self_executable(int argc, char **argv)
{
char res[PATH_MAX];
...
return res;
}
Lorsch