Commit 359b56c
authored
fix(fseek_stream): position with read/write based on file action (MODFLOW-ORG#2846)
The fseek_stream subroutine assumed the file is open in write mode. If the file is open in read-only mode, use read instead to position the file pointer. Just a preemptive, defensive fix as this is a general-purpose module/subroutine.1 parent 9c6f1f0 commit 359b56c
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1717 | 1717 | | |
1718 | 1718 | | |
1719 | 1719 | | |
| 1720 | + | |
1720 | 1721 | | |
1721 | 1722 | | |
1722 | 1723 | | |
| |||
1737 | 1738 | | |
1738 | 1739 | | |
1739 | 1740 | | |
1740 | | - | |
1741 | | - | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
1742 | 1750 | | |
1743 | 1751 | | |
1744 | 1752 | | |
| |||
0 commit comments