1c7849b724
strcalloc_starts() should have tested the return value of `memcmp` against 0 for equality. Fixed and added a test case. As an aside, one might wonder how bugs like that are creeping into well-tested code imported from other projects? The answer, specific to stralloc, is that the original code was very specific to qmail, and used a number of additional functions specific to qmail. Rather than import half of qmail, the version imported into Magicka has been reworked to, instead, use standard C functions. The process of modifying the code gave rise to the opportunity for bugs to creep in. Now that a unit testing framework is in place, we can test things in isolation more easily and hopefully catch such things BEFORE they are published to the master repository. Signed-off-by: Dan Cross <patchdev@fat-dragon.org> |
||
---|---|---|
deps | ||
dist | ||
docs | ||
src | ||
utils | ||
.gitignore | ||
.gitlab-ci.yml | ||
.gitmodules | ||
file_id.diz | ||
GNUmakefile | ||
LICENSE.txt | ||
README.md | ||
setup.sh | ||
STRINGS.CHANGES |
MagickaBBS
A Bulletin Board System for UN*X like platforms.
For documentation, see http://docs.magickabbs.com/