From 75af89699ad97ae06c011238fe82d09a281b4169 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Wed, 17 Feb 2021 12:55:21 -0600 Subject: [PATCH] Patch fish_tests to work with changed const_strlen requirements --- src/fish_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index 58d58e0e8..e80545d6a 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -3895,7 +3895,7 @@ static void test_universal_ok_to_save() { // Ensure we don't try to save after reading from a newer fish. say(L"Testing universal Ok to save"); if (system("mkdir -p test/fish_uvars_test/")) err(L"mkdir failed"); - constexpr const char *contents = "# VERSION: 99999.99\n"; + constexpr const char contents[] = "# VERSION: 99999.99\n"; FILE *fp = fopen(wcs2string(UVARS_TEST_PATH).c_str(), "w"); assert(fp && "Failed to open UVARS_TEST_PATH for writing"); fwrite(contents, const_strlen(contents), 1, fp);