projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd5e66e
)
ash: use mempcpy() where appropriate
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 21 Jul 2017 16:51:29 +0000
(18:51 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 21 Jul 2017 16:51:29 +0000
(18:51 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c
patch
|
blob
|
history
diff --git
a/shell/ash.c
b/shell/ash.c
index a461bb7df7b4f9f9cf52d284e30e4eebbcab2229..c8b2adf4e7119477cc59ea0b6f70b1dbde1c32bd 100644
(file)
--- a/
shell/ash.c
+++ b/
shell/ash.c
@@
-2315,10
+2315,10
@@
setvar(const char *name, const char *val, int flags)
INT_OFF;
nameeq = ckmalloc(namelen + vallen + 2);
- p = mem
cpy(nameeq, name, namelen) + namelen
;
+ p = mem
pcpy(nameeq, name, namelen)
;
if (val) {
*p++ = '=';
- p = mem
cpy(p, val, vallen) + vallen
;
+ p = mem
pcpy(p, val, vallen)
;
}
*p = '\0';
setvareq(nameeq, flags | VNOSAVE);