aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-25 17:46:50 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-25 17:46:50 +0300
commit7751755b6fe2938baf75a8a3a0521008a0d3c17b (patch)
treeaa23bb8500ed1ef8257be5a8879c1a43d0de549e /src/message.c
parent89af4cfb3a5c91890769a095a6c9bf2638de88ab (diff)
downloadrspamd-7751755b6fe2938baf75a8a3a0521008a0d3c17b.tar.gz
rspamd-7751755b6fe2938baf75a8a3a0521008a0d3c17b.zip
* Fix using of local variable
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c
index 6d770bbe8..d1834c968 100644
--- a/src/message.c
+++ b/src/message.c
@@ -211,8 +211,10 @@ reg_char:
}
break;
}
- c = *(++p);
i++;
+ if (i < src->len) {
+ c = *(++p);
+ }
}
if (rp < buf->data + src->len) {
*rp = '\0';