From 7a8550dbeda1d05a57a41e4aa0545c625f02ea7e Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Thu, 19 Apr 2018 13:40:25 +0200 Subject: Return allocated string instead of pointer to a string literal Issue #110 Signed-off-by: Szczepan Zalega --- NK_C_API.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'NK_C_API.h') diff --git a/NK_C_API.h b/NK_C_API.h index 3a6aa2a..858f046 100644 --- a/NK_C_API.h +++ b/NK_C_API.h @@ -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. */ -- cgit v1.2.1