aboutsummaryrefslogtreecommitdiff
path: root/server.c
Commit message (Collapse)AuthorAgeFilesLines
* server.c: Fix wrong size for memcpy(3)Xavier Del Campo Romero2023-07-201-4/+5
|
* server.c: Minor const-correctness improvementXavier Del Campo Romero2023-07-201-1/+1
|
* Fix memory leak on failed realloc(3)Xavier Del Campo Romero2023-07-201-6/+18
| | | | | | | | | | 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/+303