mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@936 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
6f1f40aa6e
commit
92ff097469
|
@ -327,10 +327,10 @@ int xdropen(XDR *xdrs, const char *filename, const char *type)
|
|||
return 0;
|
||||
}
|
||||
if (*type == 'w' || *type == 'W') {
|
||||
type = "w+";
|
||||
type = (char *) "w+";
|
||||
lmode = XDR_ENCODE;
|
||||
} else {
|
||||
type = "r";
|
||||
type = (char *) "r";
|
||||
lmode = XDR_DECODE;
|
||||
}
|
||||
xdrfiles[xdrid] = fopen(filename, type);
|
||||
|
|
Loading…
Reference in New Issue