src/logoutd.c: Use STRNCAT() instead of its pattern

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-05-21 13:58:12 +02:00
committed by Serge Hallyn
parent cb3e2fbdcf
commit 85a2f36992

View File

@@ -21,6 +21,7 @@
#include "prototypes.h"
#include "shadowlog.h"
#include "sizeof.h"
#include "string/strcpy/strncat.h"
#include "string/strdup/strndupa.h"
@@ -205,7 +206,7 @@ main(int argc, char **argv)
tty_name[0] = '\0';
}
strncat(tty_name, ut->ut_line, NITEMS(ut->ut_line));
STRNCAT(tty_name, ut->ut_line);
#ifndef O_NOCTTY
#define O_NOCTTY 0
#endif