diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index e8765aea96d..b0dfc498add 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -1043,7 +1043,7 @@ coding_set_destination (struct coding_system *coding) | |||
| 1043 | { | 1043 | { |
| 1044 | if (BUFFERP (coding->dst_object)) | 1044 | if (BUFFERP (coding->dst_object)) |
| 1045 | { | 1045 | { |
| 1046 | if (coding->src_pos < 0) | 1046 | if (BUFFERP (coding->src_object) && coding->src_pos < 0) |
| 1047 | { | 1047 | { |
| 1048 | coding->destination = BEG_ADDR + coding->dst_pos_byte - BEG_BYTE; | 1048 | coding->destination = BEG_ADDR + coding->dst_pos_byte - BEG_BYTE; |
| 1049 | coding->dst_bytes = (GAP_END_ADDR | 1049 | coding->dst_bytes = (GAP_END_ADDR |