aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-03-01 11:27:50 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-03-01 11:35:00 +0100
commite6fc0cce3937b458179bed8648825f9f047a68d8 (patch)
treed8b8dc1d5abd896ece434c515cf1468b6b37b48a
parent38c9cc878fb830fa709c5e56eda93f3310fea6e5 (diff)
downloadlibnitrokey-e6fc0cce3937b458179bed8648825f9f047a68d8.tar.gz
libnitrokey-e6fc0cce3937b458179bed8648825f9f047a68d8.tar.bz2
Increase buffer size for listing connected devices IDs
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--NK_C_API.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index 59247ba..66bbcf9 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -616,8 +616,8 @@ extern "C" {
for (const auto a : v){
res += a+";";
}
- if (res.size()>0) res.pop_back(); // remove last delimeter char
- return strndup(res.c_str(), 4096);
+ if (res.size()>0) res.pop_back(); // remove last delimiter char
+ return strndup(res.c_str(), 8192); //this buffer size sets limit to over 200 devices ID's
});
}