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
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user