summaryrefslogtreecommitdiff
path: root/registration.c
diff options
context:
space:
mode:
Diffstat (limited to 'registration.c')
-rw-r--r--registration.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/registration.c b/registration.c
index 695cf53..1693f09 100644
--- a/registration.c
+++ b/registration.c
@@ -13,7 +13,7 @@ void sign_up(const char *brand, const char *certificate)
attr.attributes = EMSCRIPTEN_FETCH_LOAD_TO_MEMORY;
strcpy(attr.requestMethod, "POST");
attr.requestData = brand;
- attr.requestDataSize = strlen(brand);
+ attr.requestDataSize = strlen(brand) + 1;
emscripten_fetch(&attr, "register");
(void)certificate;
#else