stephb9959
2022-11-02 22:50:10 -07:00
parent 087265b8b7
commit 514bb3e622
2 changed files with 2 additions and 2 deletions

2
build
View File

@@ -1 +1 @@
7
8

View File

@@ -55,7 +55,7 @@ namespace OpenWifi {
uint64_t Now = OpenWifi::Now();
uint32_t p = CppTotp::totp(CppTotp::Bytes::ByteString{ (const u_char *)Secret.c_str()}, Now, 0, 30, 6);
char buffer[16]{0};
sprintf(buffer,"%06u",p);
snprintf(buffer,7,"%06u",p);
Expecting = std::string(buffer);
return Code == Expecting;
}