Skip to content

Commit 7d641c1

Browse files
修复了input.cpp char数组溢出风险 (#7050)
1 parent 72a421f commit 7d641c1

File tree

1 file changed

+1
-1
lines changed
  • source/source_pw/module_ofdft/ml_tools

1 file changed

+1
-1
lines changed

source/source_pw/module_ofdft/ml_tools/input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ void Input::readInput()
99
exit(0);
1010
}
1111

12-
char word[80];
12+
std::string word;
1313
int ierr = 0;
1414

1515
ifs.rdstate();

0 commit comments

Comments
 (0)