git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@936 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2007-10-03 16:16:41 +00:00
parent 6f1f40aa6e
commit 92ff097469
1 changed files with 2 additions and 2 deletions

View File

@ -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);