contrib, lib/, src/, tests/: Use stpcpy(3) instead of its pattern

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-07-03 10:03:12 -05:00
committed by Serge Hallyn
parent c6018240f8
commit 59e5eef38f
34 changed files with 104 additions and 132 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ void ttytype (const char *line)
continue;
}
*strchrnul(buf, '\n') = '\0';
stpcpy(strchrnul(buf, '\n'), "");
if ( (sscanf (buf, "%1023s %1023s", type, port) == 2)
&& (strcmp (line, port) == 0)) {