summaryrefslogtreecommitdiff
path: root/ext/standard/php_crypt_r.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2020-09-07 21:35:48 +0300
committerDmitry Stogov <dmitry@zend.com>2020-09-07 21:35:48 +0300
commit4a2ae84188b904d24c7c26bf2696507c2feb6947 (patch)
treecae51e7d398d5d6d9189b1c754744e972b717380 /ext/standard/php_crypt_r.c
parentfd0b39905c299c24941644f22947553e0e009dbf (diff)
downloadphp-git-4a2ae84188b904d24c7c26bf2696507c2feb6947.tar.gz
Add "const". Move constant strings to read-only memory.
Diffstat (limited to 'ext/standard/php_crypt_r.c')
-rw-r--r--ext/standard/php_crypt_r.c2
1 files changed, 1 insertions, 1 deletions
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 */