aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-10-22 15:29:59 +0200
committerszszszsz <szszszsz@users.noreply.github.com>2016-10-22 15:33:07 +0200
commit2b3c815af73f31a4e12db6ed92290cf76b8e2914 (patch)
tree1cd572a6174dd5261bb9a54061058f14c70f4be6 /NitrokeyManager.cc
parent82a0fc21f039971acac18df0ee57e2bb010865e1 (diff)
downloadlibnitrokey-2b3c815af73f31a4e12db6ed92290cf76b8e2914.tar.gz
libnitrokey-2b3c815af73f31a4e12db6ed92290cf76b8e2914.tar.bz2
Fix compilation warning and error under G++ - use union to reach uint8 slot_counter for NK Storage. Fixes #46
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc2
1 files changed, 1 insertions, 1 deletions
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: