aboutsummaryrefslogtreecommitdiff
path: root/src/io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.cpp')
-rw-r--r--src/io.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/io.cpp b/src/io.cpp
index 35a59ee..ef6c26a 100644
--- a/src/io.cpp
+++ b/src/io.cpp
@@ -2133,19 +2133,23 @@ bool ReadFile_est(const string &file_est, const vector<size_t> &est_column,
gamma = 1.0;
for (size_t i = 0; i < n + 1; ++i) {
if (i == est_column[0] - 1) {
+ enforce(ch_ptr);
rs = ch_ptr;
}
if (i == est_column[1] - 1) {
+ enforce(ch_ptr);
alpha = atof(ch_ptr);
}
if (i == est_column[2] - 1) {
+ enforce(ch_ptr);
beta = atof(ch_ptr);
}
if (i == est_column[3] - 1) {
+ enforce(ch_ptr);
gamma = atof(ch_ptr);
}
if (i < n) {
- ch_ptr = strtok_safe(NULL, " \t");
+ ch_ptr = strtok(NULL, " \t");
}
}