From 268f1bb1859e97944e8b63a5bb12677e874ed144 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Thu, 13 Sep 2007 20:40:26 +0200 Subject: Replaced one instance of bcopy() with memcpy(). f->buffer cannot overlap with io->file->bits, so it's safe to use memcpy() rather than memmove(). Compile-tested only. --- src/builtins/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/builtins/file.c') diff --git a/src/builtins/file.c b/src/builtins/file.c index 863ecee..a46b0a6 100644 --- a/src/builtins/file.c +++ b/src/builtins/file.c @@ -27,6 +27,7 @@ #ifdef HAVE_CONFIG_H #include #endif +#include #include "builtin.h" typedef struct _BuiltinIO { @@ -49,7 +50,7 @@ BuiltinFill (BufFilePtr f) len = BUFFILESIZE; if (len > left) len = left; - bcopy (io->file->bits + io->offset, f->buffer, len); + memcpy (f->buffer, io->file->bits + io->offset, len); io->offset += len; f->left = len - 1; f->bufp = f->buffer + 1; -- cgit v1.2.3