biod.pnpi.spb.ru
/
alexxy
/
gromacs-spacetimecorr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a50c66d
)
changed fscanf to fgets
author
Anatoly
<Titov_AI@pnpi.nrcki.ru>
Mon, 10 Jun 2019 14:40:58 +0000
(17:40 +0300)
committer
Anatoly
<Titov_AI@pnpi.nrcki.ru>
Mon, 10 Jun 2019 14:40:58 +0000
(17:40 +0300)
src/spacetimecorr.cpp
patch
|
blob
|
history
diff --git
a/src/spacetimecorr.cpp
b/src/spacetimecorr.cpp
index 71b0ef9436e1106374a7155171a68e9aa4a3709e..6bc3038784138e965a88710a03338656e73bff41 100644
(file)
--- a/
src/spacetimecorr.cpp
+++ b/
src/spacetimecorr.cpp
@@
-70,7
+70,7
@@
void read_correlation_matrix_file(std::vector< std::vector< std::vector< float >
b.resize(size, c);
while (!std::feof(file)) {
-
int t1 = std::fscanf(file, "%s\n", a
);
+
char *t1 = std::fgets(a, 100, file
);
std::cout << a << "\n";
crrlts.resize(crrlts.size() + 1);
crrlts.back() = b;