Skip to content

Commit 1abc71d

Browse files
committed
Fix GH-13932: Attempt to fix mbstring on windows build (msvc).
1 parent 9df0688 commit 1abc71d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/mbstring/mbstring.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5883,8 +5883,8 @@ static zend_string* mb_mime_header_encode(zend_string *input, const mbfl_encodin
58835883
unsigned int state = 0;
58845884
/* wchar_buf should be big enough that when it is full, we definitely have enough
58855885
* wchars to fill an entire line of output */
5886-
const size_t wchar_buf_len = 90;
5887-
uint32_t wchar_buf[wchar_buf_len];
5886+
size_t wchar_buf_len = 90;
5887+
uint32_t wchar_buf[90];
58885888
uint32_t *p, *e;
58895889
/* What part of wchar_buf is filled with still-unprocessed data which should not
58905890
* be overwritten? */

0 commit comments

Comments
 (0)