diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-12 13:44:14 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-12 13:44:14 +0000 |
commit | 54d4b6e74bf539930db2cafbe075416894900076 (patch) | |
tree | 29df64c4ff1eddc3c692b82556e3dde5dc2ae0ee /src/minutils/s6ps_pfield.c | |
parent | 495d625add9e52b29a98c4fa2627a45d20d44849 (diff) | |
download | s6-linux-utils-54d4b6e74bf539930db2cafbe075416894900076.tar.xz |
Fix a few omissions2.3.0.0
Diffstat (limited to 'src/minutils/s6ps_pfield.c')
-rw-r--r-- | src/minutils/s6ps_pfield.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/minutils/s6ps_pfield.c b/src/minutils/s6ps_pfield.c index 3930d32..6072eb9 100644 --- a/src/minutils/s6ps_pfield.c +++ b/src/minutils/s6ps_pfield.c @@ -1,12 +1,12 @@ /* ISC license. */ +#include <string.h> #include <stdint.h> #include <unistd.h> #include <time.h> #include <sys/sysinfo.h> #include <skalibs/uint64.h> #include <skalibs/types.h> -#include <skalibs/bytestr.h> #include <skalibs/strerr2.h> #include <skalibs/tai.h> #include <skalibs/djbtime.h> @@ -443,7 +443,7 @@ static int fmt_args (pscan_t *p, size_t *pos, size_t *len) unsigned int i = 0 ; for (; i < 4 * (unsigned int)p->height - 3 ; i++) p->data.s[p->data.len + i] = ' ' ; - byte_copy(p->data.s + p->data.len + 4 * p->height - 3, 3, "\\_ ") ; + memcpy(p->data.s + p->data.len + 4 * p->height - 3, "\\_ ", 3) ; p->data.len += p->height << 2 ; } if (p->cmdlen) |