We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4e840 commit 5bf1f1bCopy full SHA for 5bf1f1b
src/u2f.c
@@ -696,7 +696,8 @@ static void _authenticate_continue(const USB_APDU* apdu, Packet* out_packet)
696
size_t auth_packet_len = sizeof(U2F_AUTHENTICATE_RESP) - U2F_MAX_EC_SIG_SIZE + der_len;
697
698
// Append success bytes
699
- memcpy(buf + auth_packet_len, "\x90\x00", 2);
+ uint8_t success_bytes[] = {0x90, 0x00};
700
+ memcpy(buf + auth_packet_len, success_bytes, sizeof(success_bytes));
701
702
_fill_message(buf, auth_packet_len + 2, out_packet);
703
}
0 commit comments