From 1facbc385a5ada2496bf617daed1b3e53e136a25 Mon Sep 17 00:00:00 2001 From: Gina Peter Bnayard Date: Thu, 12 Sep 2024 19:52:49 +0200 Subject: [PATCH] ext/phar: Use normal variable instead of macro --- ext/phar/phar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/phar/phar.c b/ext/phar/phar.c index e7a61f277e9..2add0135740 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -2180,9 +2180,9 @@ char *phar_fix_filepath(char *path, size_t *new_len, int use_cwd) /* {{{ */ ptr_length = ptr - tok; last_time: if (IS_DIRECTORY_UP(tok, ptr_length)) { -#define PREVIOUS newpath[newpath_len - 1] + const char previous = newpath[newpath_len - 1]; - while (newpath_len > 1 && !IS_BACKSLASH(PREVIOUS)) { + while (newpath_len > 1 && !IS_BACKSLASH(previous)) { newpath_len--; }