aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-14 11:53:25 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:46 +0100
commit6ee68fa294d1d9ab8fa8e61a009845dc31a9b771 (patch)
tree2647e13c34dbffa7827d3c1dfada51a82ba398c9 /NK_C_API.cc
parentadbc664125142c434294bfa795666c90c7608429 (diff)
downloadlibnitrokey-6ee68fa294d1d9ab8fa8e61a009845dc31a9b771.tar.gz
libnitrokey-6ee68fa294d1d9ab8fa8e61a009845dc31a9b771.tar.bz2
Compiles on MXE, but not working on Windows
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-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 4e53cd1..6d18e52 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -169,7 +169,7 @@ extern const char * NK_status() {
auto m = NitrokeyManager::instance();
return get_with_string_result([&](){
string && s = m->get_status_as_string();
- char * rs = _strdup(s.c_str());
+ char * rs = strdup(s.c_str());
clear_string(s);
return rs;
});
@@ -179,7 +179,7 @@ extern const char * NK_device_serial_number(){
auto m = NitrokeyManager::instance();
return get_with_string_result([&](){
string && s = m->get_serial_number();
- char * rs = _strdup(s.c_str());
+ char * rs = strdup(s.c_str());
clear_string(s);
return rs;
});