diff --git a/mozilla/security/nss/lib/freebl/unix_rand.c b/mozilla/security/nss/lib/freebl/unix_rand.c index f2e1611f094..2cd9445a62f 100644 --- a/mozilla/security/nss/lib/freebl/unix_rand.c +++ b/mozilla/security/nss/lib/freebl/unix_rand.c @@ -1166,10 +1166,10 @@ int ReadOneFile(int fileToRead) #ifdef SOLARIS /* grumble, Solaris does not define struc dirent to be the full length */ typedef union { - unsigned char space[sizeof dirent + NAXNAMELEN]; + unsigned char space[sizeof(struct dirent) + MAXNAMELEN]; struct dirent dir; } dirent_hack; - dirent_hach entry, firstEntry; + dirent_hack entry, firstEntry; #define entry_dir entry.dir #define NAME_MAX MAXNAMELEN #else