mirror of
https://github.com/tmux/tmux.git
synced 2026-10-11 04:44:25 +00:00
Check format time in format_skip1 before the loop as well.
This commit is contained in:
5
format.c
5
format.c
@@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: format.c,v 1.424 2026/09/29 14:12:21 nicm Exp $ */
|
/* $OpenBSD: format.c,v 1.425 2026/10/05 10:59:37 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
|
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||||
@@ -4813,6 +4813,9 @@ format_skip1(struct format_expand_state *es, const char *s, const char *end)
|
|||||||
int brackets = 0;
|
int brackets = 0;
|
||||||
u_int check = 0;
|
u_int check = 0;
|
||||||
|
|
||||||
|
if (es != NULL && !format_check_time(es, NULL))
|
||||||
|
return (NULL);
|
||||||
|
|
||||||
for (; *s != '\0'; s++) {
|
for (; *s != '\0'; s++) {
|
||||||
if (es != NULL && !format_check_time(es, &check))
|
if (es != NULL && !format_check_time(es, &check))
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user