diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-07-26 22:22:00 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-01 13:54:57 +0200 |
commit | e8ba3a66cb706e8b62e478e6802817ede04634e1 (patch) | |
tree | 2257868298988fa9148779ce82068d5bf78945b7 /include | |
parent | 1018b7a7d8d7da124d706bc5d6679c523e5f1d0f (diff) | |
download | libnitrokey-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')
-rw-r--r-- | include/stick10_commands.h | 3 |
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; }; |