From 4a2ae84188b904d24c7c26bf2696507c2feb6947 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 7 Sep 2020 21:35:48 +0300 Subject: Add "const". Move constant strings to read-only memory. --- ext/standard/php_crypt_r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/standard/php_crypt_r.c') diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c index 1e55f5f9b5..f8dffe9cc5 100644 --- a/ext/standard/php_crypt_r.c +++ b/ext/standard/php_crypt_r.c @@ -83,7 +83,7 @@ void _crypt_extended_init_r(void) #define MD5_MAGIC "$1$" #define MD5_MAGIC_LEN 3 -static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */ +static const unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */ "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; /* Convert a 16/32 bit integer to Base64 string representation */ -- cgit v1.2.1