diff options
author | Valerio Mariani <vmariani@it-hpc-gpu10.desy.de> | 2014-07-10 10:18:31 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-09-05 18:12:38 +0200 |
commit | dc88e805ff86fed82f53b3a8574ddc7c63e3b1dc (patch) | |
tree | 566481ba1ef3715905e0b456e422392f828cf197 /src/im-sandbox.c | |
parent | 45492b842c3af2af542256417a8bab5bbc7bd5f7 (diff) |
Multi-event mode bug fixes
Diffstat (limited to 'src/im-sandbox.c')
-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; |