Lines Matching refs:exec_fname_length
604 size_t exec_fname_length = ZSTR_LEN(exec_filename); local
606 while ((--exec_fname_length < SIZE_MAX) && !IS_SLASH(exec_fname[exec_fname_length]));
607 if (exec_fname_length > 0 &&
609 exec_fname_length + 1 + filename_length + 1 < MAXPATHLEN) {
610 memcpy(trypath, exec_fname, exec_fname_length + 1);
611 memcpy(trypath+exec_fname_length + 1, filename, filename_length+1);
684 size_t exec_fname_length = ZSTR_LEN(exec_filename); local
686 while ((--exec_fname_length < SIZE_MAX) && !IS_SLASH(exec_fname[exec_fname_length]));
687 if ((exec_fname && exec_fname[0] == '[') || exec_fname_length <= 0) {
693 pathbuf = (char *) emalloc(exec_fname_length + path_length + 1 + 1);
696 memcpy(pathbuf + path_length + 1, exec_fname, exec_fname_length);
697 pathbuf[path_length + exec_fname_length + 1] = '\0';