diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-05 15:30:43 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-05 15:30:43 +0800 |
commit | f9185b9d09a277b06296f62cb109745566fa18a0 (patch) | |
tree | 04caf62bec319aa2adfab048c2019f1c5f855abb | |
parent | 2975cd0c6c5fb174e2c707415e7c193800fd1c73 (diff) |
The null terminator should be considered
-rw-r--r-- | registration.c | 2 |
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 |