1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00

WASI can't read its own writes without an explicit fflush()

This commit is contained in:
Frank Denis 2019-09-13 11:16:58 +02:00
parent cb4160b82c
commit eb96e7ecda

View File

@ -190,6 +190,7 @@ int main(void)
if (xmain() != 0) {
return 99;
}
fflush(fp_res);
rewind(fp_res);
if ((fp_out = fopen(TEST_NAME_OUT, "r")) == NULL) {
perror("fopen(" TEST_NAME_OUT ")");