Lines Matching refs:exec_fname_length
584 size_t exec_fname_length = ZSTR_LEN(exec_filename); local
586 while ((--exec_fname_length < SIZE_MAX) && !IS_SLASH(exec_fname[exec_fname_length]));
587 if (exec_fname_length > 0 &&
589 exec_fname_length + 1 + filename_length + 1 < MAXPATHLEN) {
590 memcpy(trypath, exec_fname, exec_fname_length + 1);
591 memcpy(trypath+exec_fname_length + 1, filename, filename_length+1);
663 size_t exec_fname_length = ZSTR_LEN(exec_filename); local
665 while ((--exec_fname_length < SIZE_MAX) && !IS_SLASH(exec_fname[exec_fname_length]));
666 if ((exec_fname && exec_fname[0] == '[') || exec_fname_length <= 0) {
672 pathbuf = (char *) emalloc(exec_fname_length + path_length + 1 + 1);
675 memcpy(pathbuf + path_length + 1, exec_fname, exec_fname_length);
676 pathbuf[path_length + exec_fname_length + 1] = '\0';