diff options
Diffstat (limited to 'crypto/rand/randfile.c')
-rw-r--r-- | crypto/rand/randfile.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index 658a8d6b65..392efddb21 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -157,8 +157,10 @@ int RAND_write_file(const char *file) int fd = open(file, O_CREAT | O_EXCL, 0600); if (fd != -1) out = fdopen(fd, "wb"); -#else - out=fopen(file,"wb"); + else /* the open(...) reportedly fails on Win98 w/ VisualC */ + out = fopen(file,"wb"); +#else + out = fopen(file,"wb"); #endif } if (out == NULL) goto err; |