aboutsummarylogtreecommitdiffstats
path: root/rc4.c
diff options
context:
space:
mode:
authorAntony Kellermann2018-06-28 20:43:08 -0400
committerAntony Kellermann2018-06-28 20:43:08 -0400
commit675fca65c58ac30a4301cf0dd784cd92ba547303 (patch)
treed02da5d08485f1961854d45b1bf46f40af8c997d /rc4.c
parentedc136987c1051a8451095aa2b6d765678425cd9 (diff)
downloadaur-675fca65c58ac30a4301cf0dd784cd92ba547303.tar.gz
Made password const
Diffstat (limited to 'rc4.c')
-rw-r--r--rc4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc4.c b/rc4.c
index 559359a22ee5..471294d5e55f 100644
--- a/rc4.c
+++ b/rc4.c
@@ -28,7 +28,7 @@ char* rc4_ncurses_get_password(void) {
return (char*) pass;
}
-void rc4_encode_string(String* pString, char password[PASS_MAX]) {
+void rc4_encode_string(String* pString, const char password[PASS_MAX]) {
int keySchedule[256];
size_t key_len = strlen(password);
int j = 0, out;