From 0a1be0e4c0a9ce8ce89752fe057e2ba9ce01082d Mon Sep 17 00:00:00 2001 From: illiliti Date: Thu, 3 Jun 2021 07:23:30 +0300 Subject: [PATCH] Revert "contrib/helper.c: replace strncmp with strcmp" This reverts commit b3f44ae7c953197b9a62d19aa8b9d0a820bffaa7. --- contrib/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/helper.c b/contrib/helper.c index 3fee687..f2f3c50 100644 --- a/contrib/helper.c +++ b/contrib/helper.c @@ -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; }