]> Kevux Git Server - fll/commit
Bugfix: Fix problems exposed by unit testing.
authorKevin Day <thekevinday@gmail.com>
Sun, 16 Jan 2022 20:30:13 +0000 (14:30 -0600)
committerKevin Day <thekevinday@gmail.com>
Sun, 16 Jan 2022 20:30:13 +0000 (14:30 -0600)
commit12633225d05eb81a82fa60476aeb3c515d66ed4c
treeafdf919151746518d01a31cbe2adb397678b127f
parent002bf17595459e65173be16f983977ead99593b6
Bugfix: Fix problems exposed by unit testing.

The default f_color_format_t_initialize should still be provided.

Remove redundant context->set.warning assignments.

Change the logic to not require format strings to be defined thereby avoiding potential segfaults.

Avoid using strnlen() and instead use memcpy().
More memory is used when specifying the sizes, but strnlen() calls probably does this to some extent.
Doing this reduces the number of calls to copying ranges of strings.

Update comments to reflect latest practices.
level_0/f_color/c/color-common.h
level_0/f_color/c/color.c
level_0/f_color/c/color.h