diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-15 19:58:24 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-15 19:58:24 +0200 |
commit | d0e510b29af9a1d12a507f03f352b6d39adc0ace (patch) | |
tree | fb3dcc42439e70fa6c9aad86a199d12889fa6ca6 /sys/src/cmd/rc/io.c | |
parent | 7717051e3ce062fbdb8415e4befa5205d25e80bb (diff) |
rc: remove pointless Memcpy(),Malloc(),Realloc() and efree() wrappers
Diffstat (limited to 'sys/src/cmd/rc/io.c')
-rw-r--r-- | sys/src/cmd/rc/io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/rc/io.c b/sys/src/cmd/rc/io.c index 8b2ba97ee..2010e80ef 100644 --- a/sys/src/cmd/rc/io.c +++ b/sys/src/cmd/rc/io.c @@ -230,7 +230,7 @@ opencore(char *s, int len) f->fd = -1 /*open("/dev/null", 0)*/; f->bufp = f->strp = buf; f->ebuf = buf+len; - Memcpy(buf, s, len); + memmove(buf, s, len); return f; } @@ -251,8 +251,8 @@ closeio(io *io) if(io->fd>=0) close(io->fd); if(io->strp) - efree(io->strp); - efree(io); + free(io->strp); + free(io); } int |