X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;ds=sidebyside;f=example%2Fcomm%2Fblocker%2Fmain.cpp;h=354d9b02ea99fcd9de19cfc942d3c184ad1787dd;hb=4da93a9104af2bc7051916b6a91ec9f788ccd429;hp=c8723b532d41248d3dc19b342fa007afd127e506;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/example/comm/blocker/main.cpp b/example/comm/blocker/main.cpp index c8723b5..354d9b0 100644 --- a/example/comm/blocker/main.cpp +++ b/example/comm/blocker/main.cpp @@ -134,7 +134,7 @@ void MyCommunicator::eventReceiveMessage (ClientSocket& clientSocket, const Mess app::Application& app = app::functions::getApp (); cout << "Bloqueando las comunicaciones ejecute (kill -9 " << app.getPid () << ") ... " << flush; while (stop == false) { - if (gets (aux) != NULL) { + if (fgets(aux, sizeof(aux), stdin) != NULL) { if (aux [0] == 'q' || aux [0] == 'Q') stop = true; }