From 5c5f3bece5aea447ca940bd570599d8bd4b3c1cc Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 4 Nov 2020 21:35:38 +0300 Subject: [PATCH] Fix C++ example. --- example/cpp/td_example.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/cpp/td_example.cpp b/example/cpp/td_example.cpp index 35f363062..4771e5417 100644 --- a/example/cpp/td_example.cpp +++ b/example/cpp/td_example.cpp @@ -273,7 +273,7 @@ class TdExample { [this](td_api::authorizationStateWaitPassword &) { std::cout << "Enter authentication password: " << std::flush; std::string password; - std::getline(std::cin, line); + std::getline(std::cin, password); send_query(td_api::make_object(password), create_authentication_query_handler()); },