Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'

* refs/remotes/tmux-openbsd/master:
  Fix some indentation.
  Do not overflow window indexes at INT_MAX in new-window -a and renumber-windows. GitHub issue 5637 from Alexandre Fiori.
This commit is contained in:
tmux update bot
2026-09-25 12:18:32 +00:00
3 changed files with 17 additions and 9 deletions

6
tmux.c
View File

@@ -1,4 +1,4 @@
/* $OpenBSD: tmux.c,v 1.223 2026/08/17 14:47:41 nicm Exp $ */
/* $OpenBSD: tmux.c,v 1.224 2026/09/25 09:11:18 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -178,8 +178,8 @@ expand_paths(const char *s, char ***paths, u_int *n, int no_realpath)
path = expanded;
else {
if (realpath(expanded, resolved) == NULL) {
log_debug("%s: realpath(\"%s\") failed: %s", __func__,
expanded, strerror(errno));
log_debug("%s: realpath(\"%s\") failed: %s",
__func__, expanded, strerror(errno));
free(expanded);
continue;
}