Revert "contrib/helper.c: replace strncmp with strcmp"
This reverts commit b3f44ae7c9.
This commit is contained in:
parent
53aa6f3b04
commit
0a1be0e4c0
1 changed files with 2 additions and 2 deletions
|
|
@ -45,8 +45,8 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
for (i = 0; environ[i]; i++) {
|
||||
if (strcmp(environ[i], "PATH=") == 0 ||
|
||||
strcmp(environ[i], "HOME=") == 0) {
|
||||
if (strncmp(environ[i], "PATH=", 5) == 0 ||
|
||||
strncmp(environ[i], "HOME=", 5) == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue