projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Workaround for Windoze weirdness.
[openssl.git]
/
crypto
/
rand
/
randfile.c
diff --git
a/crypto/rand/randfile.c
b/crypto/rand/randfile.c
index 658a8d6b65f06050151105d9003be9cbf0a6d723..392efddb21752081ec48025e05b08e3fdac84ed6 100644
(file)
--- 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");
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;
#endif
}
if (out == NULL) goto err;