diff options
Diffstat (limited to 'src/w16select.c')
| -rw-r--r-- | src/w16select.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/w16select.c b/src/w16select.c index 194efdf590d..bdbd38de575 100644 --- a/src/w16select.c +++ b/src/w16select.c | |||
| @@ -501,12 +501,12 @@ DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_dat | |||
| 501 | 501 | ||
| 502 | BLOCK_INPUT; | 502 | BLOCK_INPUT; |
| 503 | 503 | ||
| 504 | nbytes = STRING_BYTES (XSTRING (string)); | 504 | nbytes = SBYTES (string); |
| 505 | src = XSTRING (string)->data; | 505 | src = SDATA (string); |
| 506 | 506 | ||
| 507 | /* Since we are now handling multilingual text, we must consider | 507 | /* Since we are now handling multilingual text, we must consider |
| 508 | encoding text for the clipboard. */ | 508 | encoding text for the clipboard. */ |
| 509 | charset_info = find_charset_in_text (src, XSTRING (string)->size, nbytes, | 509 | charset_info = find_charset_in_text (src, SCHARS (string), nbytes, |
| 510 | NULL, Qnil); | 510 | NULL, Qnil); |
| 511 | 511 | ||
| 512 | if (charset_info == 0) | 512 | if (charset_info == 0) |
| @@ -531,8 +531,8 @@ DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_dat | |||
| 531 | && !NILP (Ffboundp (coding.pre_write_conversion))) | 531 | && !NILP (Ffboundp (coding.pre_write_conversion))) |
| 532 | { | 532 | { |
| 533 | string = run_pre_post_conversion_on_str (string, &coding, 1); | 533 | string = run_pre_post_conversion_on_str (string, &coding, 1); |
| 534 | src = XSTRING (string)->data; | 534 | src = SDATA (string); |
| 535 | nbytes = STRING_BYTES (XSTRING (string)); | 535 | nbytes = SBYTES (string); |
| 536 | } | 536 | } |
| 537 | coding.src_multibyte = 1; | 537 | coding.src_multibyte = 1; |
| 538 | coding.dst_multibyte = 0; | 538 | coding.dst_multibyte = 0; |