aboutsummaryrefslogtreecommitdiff
path: root/html.c
Commit message (Collapse)AuthorAgeFilesLines
* Define _POSIX_C_SOURCEXavier Del Campo Romero2023-07-201-0/+2
| | | | | This allows using the default compiler defined by make(1) (i.e., c99(1)), thus improving POSIX compatibility.
* html.c: Allow empty strings on html_encodeXavier Del Campo Romero2023-07-201-0/+6
|
* Fix memory leak on failed realloc(3)Xavier Del Campo Romero2023-07-201-4/+9
| | | | | | | | | | 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.
* Initial commitXavier Del Campo Romero2023-07-201-0/+288