aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2024-01-14 16:53:33 +0100
committerDmitry V. Levin <ldv@strace.io>2024-01-15 20:01:23 +0000
commitbb9edf1bdd543bddc9cb44df88d70e6b8d8d826b (patch)
treea2407cdbed0dbfd6d635e5c9a6ae4646360a50f4
parent97325c0ca92d0d44ee77681e802b383099c91e0d (diff)
downloadpam-bb9edf1bdd543bddc9cb44df88d70e6b8d8d826b.tar.gz
pam-bb9edf1bdd543bddc9cb44df88d70e6b8d8d826b.tar.bz2
pam-bb9edf1bdd543bddc9cb44df88d70e6b8d8d826b.zip
pam_unix: declare read-only data array const
-rw-r--r--modules/pam_unix/md5_crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_unix/md5_crypt.c b/modules/pam_unix/md5_crypt.c
index a5720999..9a6bd4f9 100644
--- a/modules/pam_unix/md5_crypt.c
+++ b/modules/pam_unix/md5_crypt.c
@@ -18,7 +18,7 @@
#include "md5.h"
#include "pam_inline.h"
-static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */
+static const unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
static void to64(char *s, unsigned long v, int n)