summaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 51b627f..dde36dd 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;