This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Dan Cross 1c7849b724 Fix a bug in stralloc_starts() and add a test.
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>
2018-10-11 21:36:29 +10:00
deps CuTest: add Makefile, remove unsafe string operations 2018-10-11 21:36:23 +10:00
dist documentation work and a bug fix 2018-08-13 14:07:21 +10:00
docs documentation work and a bug fix 2018-08-13 14:07:21 +10:00
src Fix a bug in stralloc_starts() and add a test. 2018-10-11 21:36:29 +10:00
utils More GNUmakefile cleanups. 2018-10-10 10:25:26 +10:00
.gitignore Start on qwknet support 2018-06-24 10:28:18 +10:00
.gitlab-ci.yml put -qq back in 2018-03-05 18:49:30 +10:00
.gitmodules Update git modules 2018-06-05 14:03:18 +10:00
file_id.diz update v0.10-alpha 2018-02-08 20:13:50 +10:00
GNUmakefile More GNUmakefile cleanups. 2018-10-10 10:25:26 +10:00
LICENSE.txt Added License & FILE_ID.DIZ 2016-04-09 18:22:55 +10:00
README.md Updated Documentation 2018-02-05 11:14:37 +10:00
setup.sh Run as user 2018-02-18 19:52:55 +10:00
STRINGS.CHANGES Start on qwknet support 2018-06-24 10:28:18 +10:00

MagickaBBS

A Bulletin Board System for UN*X like platforms.

For documentation, see http://docs.magickabbs.com/