Lines Matching refs:p
82 char *p; in sanitize_path() local
85 p = path; in sanitize_path()
86 while ((p = strchr(p, '\\'))) in sanitize_path()
87 *p++ = '/'; in sanitize_path()
90 p = path; in sanitize_path()
91 while ((p = strstr(p, "//"))) { in sanitize_path()
92 char *src = p + 1; in sanitize_path()
93 memmove(p, src, strlen(src) + 1); in sanitize_path()
97 p = path; in sanitize_path()
98 while ((p = strstr(p, "/."))) { in sanitize_path()
107 if (p[2] == '.') { in sanitize_path()
108 p += 2; in sanitize_path()
111 char *src = p + 2; in sanitize_path()
112 memmove(p, src, strlen(src) + 1); in sanitize_path()
116 p = path; in sanitize_path()
117 while ((p = strstr(p, "/.."))) { in sanitize_path()
118 char *src = p + 3; in sanitize_path()
120 p--; in sanitize_path()
124 if (p < path) in sanitize_path()
126 if (*p == '/') in sanitize_path()
128 p--; in sanitize_path()
131 memmove(p, src, strlen(src) + 1); in sanitize_path()
178 char *p = fh->path; in file_open() local
181 strcpy(p, parent->path); in file_open()
182 p += plen - 1; in file_open()
183 *p++ = '/'; in file_open()
186 utf16_to_utf8((u8 *)p, file_name, flen); in file_open()