]> Kevux Git Server - fll/commit
Update: Switch to explicitly using sizeof() for char memset() and memcpy().
authorKevin Day <thekevinday@gmail.com>
Tue, 8 Mar 2022 03:46:17 +0000 (21:46 -0600)
committerKevin Day <thekevinday@gmail.com>
Tue, 8 Mar 2022 03:46:17 +0000 (21:46 -0600)
commitb5dc13645494833696e27d9187cebe5d55532ef3
treedf03a085a29bd50358aebc1a5b6edd14d7883a77
parent443a8fe5510515e7d53a025841582faf4b8b1304
Update: Switch to explicitly using sizeof() for char memset() and memcpy().

Different architectures might not actually have a 1-byte size.
Rather than assuming the common behavior, always call sizeof(unsigned char) to determine size of memset() and mempcy() functions.
43 files changed:
level_0/f_account/c/account.c
level_0/f_account/c/private-account.c
level_0/f_capability/c/capability.c
level_0/f_color/c/color.c
level_0/f_directory/c/directory.c
level_0/f_environment/c/environment.c
level_0/f_file/c/file.c
level_0/f_file/c/private-file.c
level_0/f_path/c/path.c
level_0/f_path/c/private-path.c
level_0/f_serialize/c/serialize.c
level_0/f_string/c/private-string.c
level_0/f_utf/c/utf.c
level_0/f_utf/c/utf/private-string.c
level_1/fl_control_group/c/control_group.c
level_1/fl_directory/c/directory.c
level_1/fl_directory/c/private-directory.c
level_1/fl_environment/c/environment.c
level_1/fl_print/c/private-print.c
level_1/fl_utf_file/c/private-utf_file.c
level_2/fll_control_group/c/control_group.c
level_2/fll_execute/c/execute.c
level_2/fll_execute/c/private-execute.c
level_2/fll_file/c/private-file.c
level_2/fll_fss/c/fss/payload.c
level_3/controller/c/control/private-control.c
level_3/controller/c/controller/private-controller.c
level_3/controller/c/entry/private-entry.c
level_3/controller/c/rule/private-rule.c
level_3/fake/c/private-build-library.c
level_3/fake/c/private-build-load.c
level_3/fake/c/private-build-object.c
level_3/fake/c/private-build-objects.c
level_3/fake/c/private-build-program.c
level_3/fake/c/private-build-skeleton.c
level_3/fake/c/private-build.c
level_3/fake/c/private-make-operate_process_type.c
level_3/fake/c/private-make-operate_validate.c
level_3/fake/c/private-skeleton.c
level_3/firewall/c/firewall.c
level_3/firewall/c/private-firewall.c
level_3/fss_embedded_list_read/c/private-read.c
level_3/fss_payload_write/c/private-write.c