diff options
author | Dmitry Stogov <dmitry@zend.com> | 2020-09-07 21:35:48 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2020-09-07 21:35:48 +0300 |
commit | 4a2ae84188b904d24c7c26bf2696507c2feb6947 (patch) | |
tree | cae51e7d398d5d6d9189b1c754744e972b717380 /ext/standard/php_crypt_r.c | |
parent | fd0b39905c299c24941644f22947553e0e009dbf (diff) | |
download | php-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.c | 2 |
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 */ |