This commit is contained in:
iceman1001 committed 2016-08-02 16:06:40 +02:00
commit e719470c46
3 files changed
+5 -5

No files matched your search

+1 -2
View File
@@ -527,8 +527,7 @@ int CmdLegicRfRawWrite(const char *Cmd) {
PrintAndLog("# changing the DCF is irreversible #");
PrintAndLog("#####################################");
PrintAndLog("do youe really want to continue? y(es) n(o)");
scanf(" %c", &answer);
if (answer == 'y' || answer == 'Y') {
if (scanf(" %c", &answer) > 0 && (answer == 'y' || answer == 'Y')) {
SendCommand(&c);
return 0;
}