diff --git a/tmux.c b/tmux.c index 2942d3788..c25e0d428 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 @@ -375,7 +375,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; }