summaryrefslogtreecommitdiff
path: root/src/supervision/s6-supervise.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/supervision/s6-supervise.c')
-rw-r--r--src/supervision/s6-supervise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c
index dcafc83..ce74cb4 100644
--- a/src/supervision/s6-supervise.c
+++ b/src/supervision/s6-supervise.c
@@ -495,7 +495,7 @@ static inline void handle_notifyfd (void)
while (r > 0)
{
r = sanitize_read(fd_read(notifyfd, buf, 4096)) ;
- if (r > 0 && memchr(buf, r, '\n'))
+ if (r > 0 && memchr(buf, '\n', r))
{
tain_copynow(&status.readystamp) ;
status.flagready = 1 ;