refactor: Add clang-tidy checks and simplify codebase

This commit is contained in:
Utkarsh Verma
2023-11-16 09:08:29 +05:30
parent f18100c2ee
commit c166ffe0b4
17 changed files with 130 additions and 78 deletions

View File

@@ -141,7 +141,7 @@ int block_update(block *const block) {
return 1;
}
(void)strcpy(block->output, buffer);
(void)strncpy(block->output, buffer, LEN(buffer));
return 0;
}