diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/coding.c b/src/coding.c index f16d505b67a..989fd70b497 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -6550,7 +6550,7 @@ decode_eol (struct coding_system *coding) | |||
| 6550 | for (p = pend - 2; p >= pbeg; p--) | 6550 | for (p = pend - 2; p >= pbeg; p--) |
| 6551 | if (*p == '\r') | 6551 | if (*p == '\r') |
| 6552 | { | 6552 | { |
| 6553 | safe_bcopy ((char *) (p + 1), (char *) p, pend-- - p - 1); | 6553 | memmove (p, p + 1, pend-- - p - 1); |
| 6554 | n++; | 6554 | n++; |
| 6555 | } | 6555 | } |
| 6556 | } | 6556 | } |
| @@ -7814,7 +7814,7 @@ decode_coding_object (struct coding_system *coding, | |||
| 7814 | } | 7814 | } |
| 7815 | if (BEGV < GPT && GPT < BEGV + coding->produced_char) | 7815 | if (BEGV < GPT && GPT < BEGV + coding->produced_char) |
| 7816 | move_gap_both (BEGV, BEGV_BYTE); | 7816 | move_gap_both (BEGV, BEGV_BYTE); |
| 7817 | bcopy (BEGV_ADDR, destination, coding->produced); | 7817 | memcpy (destination, BEGV_ADDR, coding->produced); |
| 7818 | coding->destination = destination; | 7818 | coding->destination = destination; |
| 7819 | } | 7819 | } |
| 7820 | } | 7820 | } |
| @@ -9482,7 +9482,7 @@ usage: (set-coding-system-priority &rest coding-systems) */) | |||
| 9482 | int changed[coding_category_max]; | 9482 | int changed[coding_category_max]; |
| 9483 | enum coding_category priorities[coding_category_max]; | 9483 | enum coding_category priorities[coding_category_max]; |
| 9484 | 9484 | ||
| 9485 | bzero (changed, sizeof changed); | 9485 | memset (changed, 0, sizeof changed); |
| 9486 | 9486 | ||
| 9487 | for (i = j = 0; i < nargs; i++) | 9487 | for (i = j = 0; i < nargs; i++) |
| 9488 | { | 9488 | { |
| @@ -9517,7 +9517,7 @@ usage: (set-coding-system-priority &rest coding-systems) */) | |||
| 9517 | priorities[i] = coding_priorities[j]; | 9517 | priorities[i] = coding_priorities[j]; |
| 9518 | } | 9518 | } |
| 9519 | 9519 | ||
| 9520 | bcopy (priorities, coding_priorities, sizeof priorities); | 9520 | memcpy (coding_priorities, priorities, sizeof priorities); |
| 9521 | 9521 | ||
| 9522 | /* Update `coding-category-list'. */ | 9522 | /* Update `coding-category-list'. */ |
| 9523 | Vcoding_category_list = Qnil; | 9523 | Vcoding_category_list = Qnil; |
| @@ -9568,11 +9568,11 @@ make_subsidiaries (Lisp_Object base) | |||
| 9568 | char *buf = (char *) alloca (base_name_len + 6); | 9568 | char *buf = (char *) alloca (base_name_len + 6); |
| 9569 | int i; | 9569 | int i; |
| 9570 | 9570 | ||
| 9571 | bcopy (SDATA (SYMBOL_NAME (base)), buf, base_name_len); | 9571 | memcpy (buf, SDATA (SYMBOL_NAME (base)), base_name_len); |
| 9572 | subsidiaries = Fmake_vector (make_number (3), Qnil); | 9572 | subsidiaries = Fmake_vector (make_number (3), Qnil); |
| 9573 | for (i = 0; i < 3; i++) | 9573 | for (i = 0; i < 3; i++) |
| 9574 | { | 9574 | { |
| 9575 | bcopy (suffixes[i], buf + base_name_len, strlen (suffixes[i]) + 1); | 9575 | memcpy (buf + base_name_len, suffixes[i], strlen (suffixes[i]) + 1); |
| 9576 | ASET (subsidiaries, i, intern (buf)); | 9576 | ASET (subsidiaries, i, intern (buf)); |
| 9577 | } | 9577 | } |
| 9578 | return subsidiaries; | 9578 | return subsidiaries; |