diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-02-14 11:53:25 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:46 +0100 |
commit | 6ee68fa294d1d9ab8fa8e61a009845dc31a9b771 (patch) | |
tree | 2647e13c34dbffa7827d3c1dfada51a82ba398c9 /NK_C_API.cc | |
parent | adbc664125142c434294bfa795666c90c7608429 (diff) | |
download | libnitrokey-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.cc | 4 |
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; }); |