summaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-10-04 18:58:04 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-10-10 15:51:17 +0200
commit660a0b6e2d077448b92f4147ca35a9f799daef82 (patch)
tree26dbb676c2ecd07492e9a6c4abb1267679c67a1d /NitrokeyManager.cc
parentb084e6b1e47a11a1c71cf686ccdc35b08b4e17b4 (diff)
downloadlibnitrokey-660a0b6e2d077448b92f4147ca35a9f799daef82.tar.gz
libnitrokey-660a0b6e2d077448b92f4147ca35a9f799daef82.tar.bz2
Increase maximum duplicated string length
To cover Storage's status string getter 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 0d702eb..9ff146d 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -471,7 +471,7 @@ using nitrokey::misc::strcpyT;
return get_slot_name(slot_number);
}
- static const int max_string_field_length = 100;
+ static const int max_string_field_length = 2*1024; //storage's status string is ~1k
const char * NitrokeyManager::get_slot_name(uint8_t slot_number) {
auto payload = get_payload<GetSlotName>();