summaryrefslogtreecommitdiffstats
path: root/src/file_txt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_txt.c')
-rw-r--r--src/file_txt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_txt.c b/src/file_txt.c
index e6231b56..8d1ab164 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -640,7 +640,7 @@ static int header_check_mbox(const unsigned char *buffer, const unsigned int buf
{
unsigned int i;
/* From someone@somewhere */
- for(i=5; buffer[i]!=' ' && buffer[i]!='@' && i<200; i++);
+ for(i=5; i<200 && buffer[i]!=' ' && buffer[i]!='@'; i++);
if(buffer[i]!='@')
return 0;
}