Diff

Differences From Artifact [e36e6b04a3]:

To Artifact [04a2d744f1]:


   177    177   
   178    178   static void FindAndSetExecName(Tcl_Interp *interp) {
   179    179   	int len = 0;
   180    180   	Tcl_Obj *execNameObj;
   181    181   	Tcl_Obj *lobjv[1];
   182    182   #if defined(HAVE_READLINK)
   183    183   	ssize_t readlink_ret;
   184         -	char procpath[PATH_MAX + 1];
   185         -	char exe_buf[PATH_MAX + 1];
          184  +	char procpath[4096];
          185  +	char exe_buf[4096];
   186    186   	int snprintf_ret;
   187    187   
   188    188   	if (Tcl_GetNameOfExecutable() == NULL) {
   189    189   		snprintf_ret = snprintf(procpath, sizeof(procpath), "/proc/%lu/exe", (unsigned long) getpid());
   190    190   		if (snprintf_ret < sizeof(procpath)) {
   191    191   			readlink_ret = readlink(procpath, exe_buf, sizeof(exe_buf) - 1);
   192    192