diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/im-sandbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c index 48518b82..e7a6e283 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -310,12 +310,12 @@ static int read_fpe_data(struct buffer_data *bd) /* Now the block's been parsed, it should be * forgotten about */ memmove(bd->rbuffer, - bd->rbuffer + line_end + 2, - bd->rbuflen - line_end - 2); + bd->rbuffer + line_end + 1, + bd->rbuflen - line_end - 1); /* Subtract the number of bytes removed */ bd->rbufpos = bd->rbufpos - line_end - 1; - new_rbuflen = bd->rbuflen - line_end - 2 ; + new_rbuflen = bd->rbuflen - line_end - 1 ; if ( new_rbuflen == 0 ) new_rbuflen = 256; bd->rbuffer = realloc(bd->rbuffer, new_rbuflen*sizeof(char)); bd->rbuflen = new_rbuflen; |