aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-03-16 16:51:28 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-16 16:51:28 +0100
commitc6c700c159d731d16ec050d39896e0e8ae41937d (patch)
treea628314519c7f9dce92479d69fd4552d41629d08 /NitrokeyManager.cc
parentea3032027552d9f00a87e65b6a6399a07f1c5738 (diff)
parentdc63e51bd6bf71559829f61030b94c1bfdbf4401 (diff)
downloadlibnitrokey-c6c700c159d731d16ec050d39896e0e8ae41937d.tar.gz
libnitrokey-c6c700c159d731d16ec050d39896e0e8ae41937d.tar.bz2
Merge branch 'osx_build'
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 140d4d3..12f4671 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -15,6 +15,13 @@ namespace nitrokey{
std::mutex mex_dev_com;
+ /**
+ * Copies string from pointer to fixed size C-style array. Src needs to be a valid C-string - eg. ended with '\0'.
+ * Throws when source is bigger than destination.
+ * @tparam T type of destination array
+ * @param dest fixed size destination array
+ * @param src pointer to source c-style valid string
+ */
template <typename T>
void strcpyT(T& dest, const char* src){