diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c index 57e4986a0bb..b8f19e96c43 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -514,7 +514,7 @@ clone_per_buffer_values (struct buffer *from, struct buffer *to) | |||
| 514 | PER_BUFFER_VALUE (to, offset) = obj; | 514 | PER_BUFFER_VALUE (to, offset) = obj; |
| 515 | } | 515 | } |
| 516 | 516 | ||
| 517 | bcopy (from->local_flags, to->local_flags, sizeof to->local_flags); | 517 | memcpy (to->local_flags, from->local_flags, sizeof to->local_flags); |
| 518 | 518 | ||
| 519 | to->overlays_before = copy_overlays (to, from->overlays_before); | 519 | to->overlays_before = copy_overlays (to, from->overlays_before); |
| 520 | to->overlays_after = copy_overlays (to, from->overlays_after); | 520 | to->overlays_after = copy_overlays (to, from->overlays_after); |
| @@ -4413,8 +4413,8 @@ report_overlay_modification (Lisp_Object start, Lisp_Object end, int after, | |||
| 4413 | Lisp_Object *copy = (Lisp_Object *) alloca (size * sizeof (Lisp_Object)); | 4413 | Lisp_Object *copy = (Lisp_Object *) alloca (size * sizeof (Lisp_Object)); |
| 4414 | int i; | 4414 | int i; |
| 4415 | 4415 | ||
| 4416 | bcopy (XVECTOR (last_overlay_modification_hooks)->contents, | 4416 | memcpy (copy, XVECTOR (last_overlay_modification_hooks)->contents, |
| 4417 | copy, size * sizeof (Lisp_Object)); | 4417 | size * sizeof (Lisp_Object)); |
| 4418 | gcpro1.var = copy; | 4418 | gcpro1.var = copy; |
| 4419 | gcpro1.nvars = size; | 4419 | gcpro1.nvars = size; |
| 4420 | 4420 | ||
| @@ -4877,7 +4877,7 @@ mmap_realloc (var, nbytes) | |||
| 4877 | } | 4877 | } |
| 4878 | else if (mmap_alloc (var, nbytes)) | 4878 | else if (mmap_alloc (var, nbytes)) |
| 4879 | { | 4879 | { |
| 4880 | bcopy (old_ptr, *var, r->nbytes_specified); | 4880 | memcpy (*var, old_ptr, r->nbytes_specified); |
| 4881 | mmap_free_1 (MMAP_REGION (old_ptr)); | 4881 | mmap_free_1 (MMAP_REGION (old_ptr)); |
| 4882 | result = *var; | 4882 | result = *var; |
| 4883 | r = MMAP_REGION (result); | 4883 | r = MMAP_REGION (result); |
| @@ -5058,7 +5058,7 @@ init_buffer_once (void) | |||
| 5058 | { | 5058 | { |
| 5059 | int idx; | 5059 | int idx; |
| 5060 | 5060 | ||
| 5061 | bzero (buffer_permanent_local_flags, sizeof buffer_permanent_local_flags); | 5061 | memset (buffer_permanent_local_flags, 0, sizeof buffer_permanent_local_flags); |
| 5062 | 5062 | ||
| 5063 | /* Make sure all markable slots in buffer_defaults | 5063 | /* Make sure all markable slots in buffer_defaults |
| 5064 | are initialized reasonably, so mark_buffer won't choke. */ | 5064 | are initialized reasonably, so mark_buffer won't choke. */ |
| @@ -5146,7 +5146,7 @@ init_buffer_once (void) | |||
| 5146 | if (sizeof (EMACS_INT) != sizeof (Lisp_Object)) abort (); | 5146 | if (sizeof (EMACS_INT) != sizeof (Lisp_Object)) abort (); |
| 5147 | 5147 | ||
| 5148 | /* 0 means not a lisp var, -1 means always local, else mask */ | 5148 | /* 0 means not a lisp var, -1 means always local, else mask */ |
| 5149 | bzero (&buffer_local_flags, sizeof buffer_local_flags); | 5149 | memset (&buffer_local_flags, 0, sizeof buffer_local_flags); |
| 5150 | XSETINT (buffer_local_flags.filename, -1); | 5150 | XSETINT (buffer_local_flags.filename, -1); |
| 5151 | XSETINT (buffer_local_flags.directory, -1); | 5151 | XSETINT (buffer_local_flags.directory, -1); |
| 5152 | XSETINT (buffer_local_flags.backed_up, -1); | 5152 | XSETINT (buffer_local_flags.backed_up, -1); |