We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 93cc278 + 954c54f commit 7de0bd8Copy full SHA for 7de0bd8
blink/fspath.c
@@ -44,8 +44,8 @@ char *JoinPath(const char *x, const char *y) {
44
45
char *ExpandUser(const char *path) {
46
const char *home;
47
- if (*path == '~' && (home = getenv("HOME"))) {
48
- return JoinPath(home, path);
+ if (path[0] == '~' && path[1] == '/' && (home = getenv("HOME"))) {
+ return JoinPath(home, &path[2]);
49
} else {
50
return strdup(path);
51
}
0 commit comments