diff options
-rw-r--r-- | NK_C_API.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc index ec9bfa5..8e005b8 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -247,7 +247,7 @@ extern "C" { auto m = NitrokeyManager::instance(); return get_with_string_result([&]() { string && s = m->get_status_as_string(); - char * rs = strndup(s.c_str(), max_string_field_length); + char * rs = strndup(s.c_str(), MAXIMUM_STR_REPLY_LENGTH); clear_string(s); return rs; }); |