Fix declaration vs. definition inconsistency. No functional change.

This commit is contained in:
Jung-uk Kim 2013-04-05 23:41:34 +00:00
parent c46c2523c2
commit 068f3d2f84

View File

@ -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);