From 2b3c815af73f31a4e12db6ed92290cf76b8e2914 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 22 Oct 2016 15:29:59 +0200 Subject: Fix compilation warning and error under G++ - use union to reach uint8 slot_counter for NK Storage. Fixes #46 Signed-off-by: Szczepan Zalega --- NitrokeyManager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NitrokeyManager.cc') diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index 7f3bfd0..4c2c834 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -198,7 +198,7 @@ namespace nitrokey{ } case DeviceModel::STORAGE: { std::string counter = std::to_string(hotp_counter); - strcpyT(payload.slot_counter, counter.c_str()); + strcpyT(payload.slot_counter_s, counter.c_str()); break; } default: -- cgit v1.2.1