diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-11-03 00:20:49 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2023-11-03 09:19:18 +0100 |
commit | a18a38cff5e8250f43a094ec42cd8497d301b539 (patch) | |
tree | 6ea04a7a57964f1ff631fcbd81a55d6027bacf33 /XUtils.c | |
parent | 1a342749b33e2ceb974c7459fb2c885e1955ecac (diff) |
Ensure the buffer is always terminated
Diffstat (limited to 'XUtils.c')
-rw-r--r-- | XUtils.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -284,6 +284,7 @@ static ssize_t readfd_internal(int fd, void* buffer, size_t count) { continue; close(fd); + *((char*)buffer) = '\0'; return -errno; } |