diff options
-rw-r--r-- | Userland/Libraries/LibC/stdlib.cpp | 2 | ||||
-rw-r--r-- | Userland/Utilities/mktemp.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibC/stdlib.cpp b/Userland/Libraries/LibC/stdlib.cpp index 1e66630927..0406462959 100644 --- a/Userland/Libraries/LibC/stdlib.cpp +++ b/Userland/Libraries/LibC/stdlib.cpp @@ -165,7 +165,7 @@ inline int generate_unique_filename(char* pattern, Callback callback) size_t start = length - 6; - static constexpr char random_characters[] = "abcdefghijklmnopqrstuvwxyz0123456789"; + constexpr char random_characters[] = "abcdefghijklmnopqrstuvwxyz0123456789"; for (int attempt = 0; attempt < 100; ++attempt) { for (int i = 0; i < 6; ++i) diff --git a/Userland/Utilities/mktemp.cpp b/Userland/Utilities/mktemp.cpp index d40f8c5d1e..c1d1f98449 100644 --- a/Userland/Utilities/mktemp.cpp +++ b/Userland/Utilities/mktemp.cpp @@ -21,7 +21,7 @@ static char* generate_random_filename(const char* pattern) char* new_filename = strdup(pattern); int pattern_length = strlen(pattern); - static constexpr char random_characters[] = "abcdefghijklmnopqrstuvwxyz0123456789"; + constexpr char random_characters[] = "abcdefghijklmnopqrstuvwxyz0123456789"; for (auto i = pattern_length - 1; i >= 0; --i) { if (pattern[i] != 'X') break; |