Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2023-06-17 21:45:02 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2023-06-17 21:45:02 +0300
commitd0441222db80c6fc0c47fa014106d38e25bfada7 (patch)
treee55fe67cba4884a7c15e860545a9d236d472d3b2 /shell
parent2ca9c45953cdb5a1bd6144c6eed5a8f14c551122 (diff)
ash: code shrink
function old new delta setvar 166 164 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 51b627fcc..dde36dd7c 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2506,7 +2506,7 @@ setvar(const char *name, const char *val, int flags)
p = mempcpy(nameeq, name, namelen);
if (val) {
*p++ = '=';
- memcpy(p, val, vallen);
+ strcpy(p, val);
}
vp = setvareq(nameeq, flags | VNOSAVE);
INT_ON;