summaryrefslogtreecommitdiff
path: root/src/conn-tools/s6-ipcserver-access.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:08:06 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:08:06 +0000
commit765feac2cdcb84623f8778e20f8277b32679eeac (patch)
tree5d354fa1f689e872efe2e167c6d025c7812f1526 /src/conn-tools/s6-ipcserver-access.c
parentc60ebd422171808ad58b936914055397bb205bef (diff)
downloads6-765feac2cdcb84623f8778e20f8277b32679eeac.tar.xz
Fix a few omissions in the adaptation
Diffstat (limited to 'src/conn-tools/s6-ipcserver-access.c')
-rw-r--r--src/conn-tools/s6-ipcserver-access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conn-tools/s6-ipcserver-access.c b/src/conn-tools/s6-ipcserver-access.c
index c5e20c2..1444a38 100644
--- a/src/conn-tools/s6-ipcserver-access.c
+++ b/src/conn-tools/s6-ipcserver-access.c
@@ -150,8 +150,8 @@ int main (int argc, char const *const *argv, char const *const *envp)
{
char const *x ;
char tmp[protolen + 11] ;
- byte_copy(tmp, protolen, proto) ;
- byte_copy(tmp + protolen, 11, "REMOTEEUID") ;
+ memcpy(tmp, proto, protolen) ;
+ memcpy(tmp + protolen, "REMOTEEUID", 11) ;
x = env_get2(envp, tmp) ;
if (!x) strerr_dienotset(100, tmp) ;
if (!uid0_scan(x, &uid)) strerr_dieinvalid(100, tmp) ;