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-05-19 01:53:12 +02:00
committed by Serge Hallyn
parent c6018240f8
commit 59e5eef38f
34 changed files with 104 additions and 132 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ int check_su_auth (const char *actual_id,
continue;
}
*strrspn(temp, " \t\n") = '\0';
stpcpy(strrspn(temp, " \t\n"), "");
posn = 0;
while (temp[posn] == ' ' || temp[posn] == '\t')