diff --git a/tmux.c b/tmux.c index 8a90c3ff9..822e9efd4 100644 --- a/tmux.c +++ b/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.221 2026/06/29 18:17:28 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.222 2026/07/19 19:09:30 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -360,7 +360,7 @@ find_home(void) if (home == NULL || *home == '\0') { pw = getpwuid(getuid()); if (pw != NULL) - home = pw->pw_dir; + home = xstrdup(pw->pw_dir); else home = NULL; }