diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-04-19 13:40:25 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-04-19 13:40:25 +0200 |
commit | 7a8550dbeda1d05a57a41e4aa0545c625f02ea7e (patch) | |
tree | 60d2aec25a62f137372e607579b245e2d4ae9801 /NK_C_API.h | |
parent | 7f5f471d8f3a67fe109e4c8c241de2e1098d275e (diff) | |
download | libnitrokey-7a8550dbeda1d05a57a41e4aa0545c625f02ea7e.tar.gz libnitrokey-7a8550dbeda1d05a57a41e4aa0545c625f02ea7e.tar.bz2 |
Return allocated string instead of pointer to a string literal
Issue #110
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.h')
-rw-r--r-- | NK_C_API.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -28,13 +28,15 @@ #ifdef _MSC_VER #define NK_C_API __declspec(dllexport) #else -#define NK_C_API +#define NK_C_API #endif #ifdef __cplusplus extern "C" { #endif + static const int MAXIMUM_STR_REPLY_LENGTH = 8192; + /** * The Nitrokey device models supported by the API. */ |