]> arthur.barton.de Git - netatalk.git/commitdiff
Oops, fixed thinko I introduced in the last patch.
authorsrittau <srittau>
Wed, 11 Jun 2003 22:07:56 +0000 (22:07 +0000)
committersrittau <srittau>
Wed, 11 Jun 2003 22:07:56 +0000 (22:07 +0000)
etc/uams/uams_dhx_passwd.c

index 1ffbf288f61c65c423ae776537d3e6b0872c0d51..51feca18a79099441d914ef321f928293c62032f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: uams_dhx_passwd.c,v 1.20 2003-06-11 22:05:55 srittau Exp $
+ * $Id: uams_dhx_passwd.c,v 1.21 2003-06-11 22:07:56 srittau Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) 
@@ -86,7 +86,7 @@ static int pwd_login(void *obj, char *username, int ulen, struct passwd **uam_pw
 
 #ifdef TRU64
     int rnd_seed[256];
-    for (i = 0; i < sizeof(256); i++)
+    for (i = 0; i < sizeof(rnd_seed); i++)
        rnd_seed[i] = random();
     RAND_seed(rnd_seed, sizeof rnd_seed);
 #endif /* TRU64 */