summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2007-09-13 20:40:26 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2007-09-13 20:44:20 +0200
commit268f1bb1859e97944e8b63a5bb12677e874ed144 (patch)
tree8435c25d64fe1c02ccf6b97246c4667f87a89051 /src
parentf2725a5c9da771fb610d503ebfda3b4d1553bac4 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/builtins/file.c3
1 files changed, 2 insertions, 1 deletions
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 <config.h>
#endif
+#include <string.h>
#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;