summaryrefslogtreecommitdiffstats
path: root/plugins/ompgsql/ompgsql.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-04 13:08:20 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-04 13:08:20 +0000
commit9bdf66fa494b34a8ce05e985c92e86fc3081e728 (patch)
tree6db6bff6c7a8f3f9ff07ec5d3a625ec72526856d /plugins/ompgsql/ompgsql.c
parenta97a6d3d77003e9328c9550583a5a3aba13b7ce8 (diff)
downloadrsyslog-9bdf66fa494b34a8ce05e985c92e86fc3081e728.tar.gz
rsyslog-9bdf66fa494b34a8ce05e985c92e86fc3081e728.tar.xz
rsyslog-9bdf66fa494b34a8ce05e985c92e86fc3081e728.zip
small performance improvement
Diffstat (limited to 'plugins/ompgsql/ompgsql.c')
-rw-r--r--plugins/ompgsql/ompgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ompgsql/ompgsql.c b/plugins/ompgsql/ompgsql.c
index 35b0b598..24a68a5f 100644
--- a/plugins/ompgsql/ompgsql.c
+++ b/plugins/ompgsql/ompgsql.c
@@ -228,7 +228,7 @@ CODE_STD_STRING_REQUESTparseSelectorAct(1)
*/
if(!strncmp((char*) p, ":ompgsql:", sizeof(":ompgsql:") - 1)) {
- p += strlen(":ompgsql:"); /* eat indicator sequence */
+ p += sizeof(":ompgsql:") - 1; /* eat indicator sequence (-1 because of '\0'!) */
} else {
ABORT_FINALIZE(RS_RET_CONFLINE_UNPROCESSED);
}