From 87433db66fa8ea0c822290dd017f3f248192e1b2 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 4 Dec 2007 13:09:01 +0000 Subject: fixed an off-by-one bug that created problems when :ommysql: syntax was used. Thanks to sur5r for pointing this out. --- plugins/ommysql/ommysql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/ommysql/ommysql.c') diff --git a/plugins/ommysql/ommysql.c b/plugins/ommysql/ommysql.c index bb3441af..02ab68a7 100644 --- a/plugins/ommysql/ommysql.c +++ b/plugins/ommysql/ommysql.c @@ -233,7 +233,7 @@ CODE_STD_STRING_REQUESTparseSelectorAct(1) if(*p == '>') { p++; /* eat '>' '*/ } else if(!strncmp((char*) p, ":ommysql:", sizeof(":ommysql:") - 1)) { - p += sizeof(":ommysql:"); /* eat indicator sequence */ + p += sizeof(":ommysql:") - 1; /* eat indicator sequence (-1 because of '\0'!) */ } else { ABORT_FINALIZE(RS_RET_CONFLINE_UNPROCESSED); } -- cgit v1.2.3