From a070dd65d5b8bb2e4930b9d852a41f8327b71d54 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 18 Dec 2021 11:12:43 +0100 Subject: [PATCH] avoid strlwr --- src/ebusd/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ebusd/main.cpp b/src/ebusd/main.cpp index 80d892a1..4af7214f 100644 --- a/src/ebusd/main.cpp +++ b/src/ebusd/main.cpp @@ -1282,9 +1282,10 @@ int main(int argc, char* argv[]) { if (len<=1 || len>sizeof(envname)-3) { // no single char long args continue; } - strncpy(envopt, start, len); + for (size_t i=0; i