aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-01-26 17:57:54 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:12 +0100
commitbef149e2f81dbbef96cd5cd5bd0db053447025b2 (patch)
tree7b6155b5261da3c8ba2cecba32327a4932747a72 /src
parente3a2807bedf1a1a9e25923ee9bc0db653c4c4033 (diff)
Avoid memory corruption
Diffstat (limited to 'src')
-rw-r--r--src/mosflm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mosflm.c b/src/mosflm.c
index 6f27eb7d..11642cc8 100644
--- a/src/mosflm.c
+++ b/src/mosflm.c
@@ -397,7 +397,7 @@ static int mosflm_readable(struct image *image, struct mosflm_data *mosflm)
/* Means the last value looked at is rbufpos-2 */
/* Is there a prompt in the buffer? */
- if ( (i+7 <= mosflm->rbufpos)
+ if ( (i+10 <= mosflm->rbufpos)
&& (!strncmp(mosflm->rbuffer+i, "MOSFLM => ", 10)) ) {
block_ready = 1;
type = MOSFLM_INPUT_PROMPT;