diff options
author | Damien Doligez <damien.doligez-inria.fr> | 2000-10-12 18:05:42 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 2000-10-12 18:05:42 +0000 |
commit | cdf19e15fc00c997fee4b46c147320e4dff390a6 (patch) | |
tree | adfacfaa4596e23800047746fdb78b44a995153c /byterun/printexc.c | |
parent | be85acc16e8aa5c0811bbcd365e0856bd797f50b (diff) |
bcopy -> memmove; pas de virgule finale dans instruct.h
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3310 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/printexc.c')
-rw-r--r-- | byterun/printexc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/byterun/printexc.c b/byterun/printexc.c index 3bff25b02..c6e247882 100644 --- a/byterun/printexc.c +++ b/byterun/printexc.c @@ -39,7 +39,7 @@ static void add_string(struct stringbuf *buf, char *s) { int len = strlen(s); if (buf->ptr + len > buf->end) len = buf->end - buf->ptr; - if (len > 0) bcopy(s, buf->ptr, len); + if (len > 0) memmove(buf->ptr, s, len); buf->ptr += len; } @@ -86,7 +86,7 @@ char * format_caml_exception(value exn) i = buf.ptr - buf.data + 1; res = malloc(i); if (res == NULL) return NULL; - bcopy(buf.data, res, i); + memmove(res, buf.data, i); return res; } |