must open files for xtc dump in binary mode
This commit is contained in:
@ -433,10 +433,10 @@ int xdropen(XDR *xdrs, const char *filename, const char *type)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (*type == 'w' || *type == 'W') {
|
if (*type == 'w' || *type == 'W') {
|
||||||
type = (char *) "w+";
|
type = (char *) "wb+";
|
||||||
lmode = XDR_ENCODE;
|
lmode = XDR_ENCODE;
|
||||||
} else {
|
} else {
|
||||||
type = (char *) "r";
|
type = (char *) "rb";
|
||||||
lmode = XDR_DECODE;
|
lmode = XDR_DECODE;
|
||||||
}
|
}
|
||||||
xdrfiles[xdrid] = fopen(filename, type);
|
xdrfiles[xdrid] = fopen(filename, type);
|
||||||
|
|||||||
Reference in New Issue
Block a user