From 6e2bf4ed49b2faf4e71dd4c19ee7ebbfbc6e18c5 Mon Sep 17 00:00:00 2001 From: unparalleled-js Date: Sun, 13 Sep 2020 16:27:32 -0500 Subject: [PATCH 1/3] Correct spelling of automatically --- c/src/core/client/plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/core/client/plugin.h b/c/src/core/client/plugin.h index 652409c38..14a8a1790 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); From 75b8b03e301b45022942ea50348813406395ecc3 Mon Sep 17 00:00:00 2001 From: unparalleled-js Date: Sun, 13 Sep 2020 16:28:56 -0500 Subject: [PATCH 2/3] Correct spelling of tokens --- c/src/core/client/plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/core/client/plugin.h b/c/src/core/client/plugin.h index 14a8a1790..987c0c2b2 100644 --- a/c/src/core/client/plugin.h +++ b/c/src/core/client/plugin.h @@ -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. */ From 0128bd981e04cf76eee5b8cd4de83264543694a5 Mon Sep 17 00:00:00 2001 From: unparalleled-js Date: Sun, 13 Sep 2020 16:33:45 -0500 Subject: [PATCH 3/3] Use sizeof for getting string for filename --- python/in3/libin3/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)