aboutsummaryrefslogtreecommitdiff
path: root/include/stick10_commands.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-26 22:22:00 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:57 +0200
commite8ba3a66cb706e8b62e478e6802817ede04634e1 (patch)
tree2257868298988fa9148779ce82068d5bf78945b7 /include/stick10_commands.h
parent1018b7a7d8d7da124d706bc5d6679c523e5f1d0f (diff)
downloadlibnitrokey-e8ba3a66cb706e8b62e478e6802817ede04634e1.tar.gz
libnitrokey-e8ba3a66cb706e8b62e478e6802817ede04634e1.tar.bz2
Fixed showing password safe status in debug messages
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/stick10_commands.h')
-rw-r--r--include/stick10_commands.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/stick10_commands.h b/include/stick10_commands.h
index 16448b0..d88c36b 100644
--- a/include/stick10_commands.h
+++ b/include/stick10_commands.h
@@ -342,9 +342,8 @@ class GetUserPasswordRetryCount
template <typename T, typename Q, int N>
void write_array(T &ss, Q (&arr)[N]){
- ss << std::hex << std::setfill('0') << std::setw(2);
for (int i=0; i<N; i++){
- ss << arr[i] << " ";
+ ss << std::hex << std::setfill('0') << std::setw(2) << (int)arr[i] << " ";
}
ss << std::endl;
};