summaryrefslogtreecommitdiffstats
path: root/XUtils.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-11-03 00:20:49 +0100
committerBenny Baumann <BenBE@geshi.org>2023-11-03 09:19:18 +0100
commita18a38cff5e8250f43a094ec42cd8497d301b539 (patch)
tree6ea04a7a57964f1ff631fcbd81a55d6027bacf33 /XUtils.c
parent1a342749b33e2ceb974c7459fb2c885e1955ecac (diff)
Ensure the buffer is always terminated
Diffstat (limited to 'XUtils.c')
-rw-r--r--XUtils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/XUtils.c b/XUtils.c
index 1af0dd4f..214b0565 100644
--- a/XUtils.c
+++ b/XUtils.c
@@ -284,6 +284,7 @@ static ssize_t readfd_internal(int fd, void* buffer, size_t count) {
continue;
close(fd);
+ *((char*)buffer) = '\0';
return -errno;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy