must open files for xtc dump in binary mode

This commit is contained in:
Axel Kohlmeyer
2022-06-06 15:01:25 -04:00
parent dcbc5256fa
commit 8f773be2d6

View File

@ -433,10 +433,10 @@ int xdropen(XDR *xdrs, const char *filename, const char *type)
return 0;
}
if (*type == 'w' || *type == 'W') {
type = (char *) "w+";
type = (char *) "wb+";
lmode = XDR_ENCODE;
} else {
type = (char *) "r";
type = (char *) "rb";
lmode = XDR_DECODE;
}
xdrfiles[xdrid] = fopen(filename, type);