From b3f44ae7c953197b9a62d19aa8b9d0a820bffaa7 Mon Sep 17 00:00:00 2001 From: illiliti Date: Thu, 3 Jun 2021 05:19:14 +0300 Subject: [PATCH] contrib/helper.c: replace strncmp with strcmp --- contrib/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/helper.c b/contrib/helper.c index f2f3c50..3fee687 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 (strncmp(environ[i], "PATH=", 5) == 0 || - strncmp(environ[i], "HOME=", 5) == 0) { + if (strcmp(environ[i], "PATH=") == 0 || + strcmp(environ[i], "HOME=") == 0) { continue; }