diff --git a/c/src/core/client/plugin.h b/c/src/core/client/plugin.h index 652409c38..987c0c2b2 100644 --- a/c/src/core/client/plugin.h +++ b/c/src/core/client/plugin.h @@ -63,7 +63,7 @@ in3_ret_t in3_plugin_register( /** registers a plugin and uses the function name as plugin name */ #define plugin_register(c, acts, action_fn, data, replace_ex) in3_plugin_register(#action_fn, c, acts, action_fn, data, replace_ex) /** - * adds a plugin rregister function to the default. All defaults functions will automaticly called and registered for every new in3_t instance. + * adds a plugin rregister function to the default. All defaults functions will automatically called and registered for every new in3_t instance. */ void in3_register_default(plgn_register reg_fn); @@ -85,7 +85,7 @@ in3_ret_t in3_plugin_execute_first_or_none(in3_ctx_t* ctx, in3_plugin_act_t acti // ----------- RPC HANDLE ----------- /** - * verification context holding the pointers to all relevant toknes. + * verification context holding the pointers to all relevant tokens. */ typedef struct { in3_ctx_t* ctx; /**< Request context. */ diff --git a/python/in3/libin3/storage.py b/python/in3/libin3/storage.py index 01c0bd3ff..757cfe16a 100644 --- a/python/in3/libin3/storage.py +++ b/python/in3/libin3/storage.py @@ -26,7 +26,7 @@ def set_item(_cptr, key, value): key: File name to be stored. value: File contents. """ - key = c.string_at(key).decode('utf8') + key = c.string_at(key, c.sizeof(key)).decode('utf8') path.mkdir(parents=True, exist_ok=True) try: value = c.string_at(value.contents.data, value.contents.len)