contrib, lib/, src/, tests/: Use stpcpy(3) instead of its pattern
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Serge Hallyn
parent
c6018240f8
commit
59e5eef38f
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user