Lines Matching defs:path
845 static const char *shorten_path(const char *path)
848 size_t len = strlen(path);
852 return path;
855 shortpath = strchr(path + len - MAX_PATH_LEN, '/');
857 if (shortpath < path + strlen("..."))
859 * make the path longer by prefixing with the ellipsis.
860 * Not worth it, keep initial path.
862 return path;
867 shortpath = strrchr(path, '/');
871 return path;