From bb9edf1bdd543bddc9cb44df88d70e6b8d8d826b Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Sun, 14 Jan 2024 16:53:33 +0100 Subject: pam_unix: declare read-only data array const --- modules/pam_unix/md5_crypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pam_unix') 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) -- cgit v1.2.3