From 068f3d2f8419b65db76a3ff9eba0558a6481da43 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Fri, 5 Apr 2013 23:41:34 +0000 Subject: [PATCH] Fix declaration vs. definition inconsistency. No functional change. --- lib/libpam/modules/pam_unix/pam_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c index 5881ecf07b3c..9a213e2040c0 100644 --- a/lib/libpam/modules/pam_unix/pam_unix.c +++ b/lib/libpam/modules/pam_unix/pam_unix.c @@ -460,14 +460,14 @@ to64(char *s, long v, int n) } /* Salt suitable for traditional DES and MD5 */ -void -makesalt(char salt[SALTSIZE]) +static void +makesalt(char salt[SALTSIZE + 1]) { int i; /* These are not really random numbers, they are just * numbers that change to thwart construction of a - * dictionary. This is exposed to the public. + * dictionary. */ for (i = 0; i < SALTSIZE; i += 4) to64(&salt[i], arc4random(), 4);