From e6cc132874a2f8a333ded6cd5c83fb6a32731982 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 18 Jan 2022 16:59:54 +0000 Subject: [PATCH] fix accidental removal in update_user --- common/network/GetAPIMessager.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/network/GetAPIMessager.cxx b/common/network/GetAPIMessager.cxx index d925873..eb12d2c 100644 --- a/common/network/GetAPIMessager.cxx +++ b/common/network/GetAPIMessager.cxx @@ -283,6 +283,8 @@ uint8_t GetAPIMessager::netAddUser(const char name[], const char pw[], const boo action_data act; + memcpy(act.data.user, name, USERNAME_LEN); + act.data.user[USERNAME_LEN - 1] = '\0'; memcpy(act.data.password, pw, PASSWORD_LEN); act.data.password[PASSWORD_LEN - 1] = '\0'; act.data.owner = 0;