diff options
-rw-r--r-- | src/yue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yue.cpp b/src/yue.cpp index b5f91ff..bf0ac24 100644 --- a/src/yue.cpp +++ b/src/yue.cpp | |||
@@ -271,7 +271,7 @@ int main(int narg, const char** args) { | |||
271 | } | 271 | } |
272 | char ch; | 272 | char ch; |
273 | std::string codes; | 273 | std::string codes; |
274 | while ((ch = std::cin.get()) != EOF) { | 274 | while ((ch = std::cin.get()) && !std::cin.eof()) { |
275 | codes += ch; | 275 | codes += ch; |
276 | } | 276 | } |
277 | yue::YueConfig conf; | 277 | yue::YueConfig conf; |