sys functions working

This commit is contained in:
Nikola Petrov
2024-01-15 10:46:00 +01:00
parent 36de6ec412
commit 43e9aa8553
6 changed files with 94 additions and 11 deletions

View File

@@ -45,9 +45,9 @@ void delete_logininfo_from_buffer(Buffer &buffer, int index_of_pass)
void add_logininfo_to_buffer(Buffer &buffer, const char *label, const char *username, const char *password)
{
int label_start = buffer.add_end((uint8_t *)label, strlen(label) + 1);
int username_start = buffer.add_end((uint8_t *)username, strlen(username) + 1);
int password_start = buffer.add_end((uint8_t *)password, strlen(password) + 1);
uint32_t label_start = buffer.add_end((uint8_t *)label, strlen(label) + 1);
uint32_t username_start = buffer.add_end((uint8_t *)username, strlen(username) + 1);
uint32_t password_start = buffer.add_end((uint8_t *)password, strlen(password) + 1);
Index *index = (Index *)buffer.buffer;