diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index ec57467f023..313e4021486 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -6805,6 +6805,8 @@ decode_coding (coding) | |||
| 6805 | coding->carryover. */ | 6805 | coding->carryover. */ |
| 6806 | unsigned char *p = coding->carryover; | 6806 | unsigned char *p = coding->carryover; |
| 6807 | 6807 | ||
| 6808 | if (nbytes > sizeof coding->carryover) | ||
| 6809 | nbytes = sizeof coding->carryover; | ||
| 6808 | coding->carryover_bytes = nbytes; | 6810 | coding->carryover_bytes = nbytes; |
| 6809 | while (nbytes-- > 0) | 6811 | while (nbytes-- > 0) |
| 6810 | *p++ = *src++; | 6812 | *p++ = *src++; |