Commit Graph

57 Commits

Author SHA1 Message Date
62bdf9f72f
Fix memory leak on failed realloc(3)
According to C99 §7.20.3.4:

If memory for the new object cannot be allocated, the old object is not
deallocated and its value is unchanged.

Therefore, a temporary pointer must be used to ensure the original
object can still be deallocated should realloc(3) return a null pointer.
2023-03-04 03:03:15 +01:00
d83e8ad1ba
Add man page 2023-02-28 01:43:59 +01:00
08a38aea94
Add usergen
This script takes a username and password from standard input and
generates a JSON object that can be appended to the "users" object in
db.json.
2023-02-28 01:43:59 +01:00
1b990951f5
Add Makefile 2023-02-28 01:43:59 +01:00
1b2aff6c5a
Add .gitignore 2023-02-28 01:43:59 +01:00
9be793e62d
Import dynstr 2023-02-28 01:43:59 +01:00
d26f046fc9
Initial commit 2023-02-28 01:43:56 +01:00