summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-03-29 11:54:19 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-03-29 11:54:19 +0200
commit21ced790cd01e18d94d2cf65c6325769c2bad285 (patch)
tree11b10578db99236a0758a18a0e99780d60a02b8f /template.c
parent6f9773f1faa79c87c4c35c679455151d4e6d9e00 (diff)
parent030fd145a3d8759367b73cc66e03023ff131c951 (diff)
downloadrsyslog-21ced790cd01e18d94d2cf65c6325769c2bad285.zip
rsyslog-21ced790cd01e18d94d2cf65c6325769c2bad285.tar.gz
rsyslog-21ced790cd01e18d94d2cf65c6325769c2bad285.tar.xz
Merge branch 'v5-beta-strgen-bind' into v5-beta
Diffstat (limited to 'template.c')
-rw-r--r--template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/template.c b/template.c
index 1e1a6c3..2038c6c 100644
--- a/template.c
+++ b/template.c
@@ -882,10 +882,10 @@ tplAddTplMod(struct template *pTpl, uchar** ppRestOfConfLine)
* regular syntax were used, and it make sure the strgen postively
* acknowledged implementing the option. -- rgerhards, 2011-03-21
*/
- if(lenMod > 6 && !strcasecmp((char*) szMod + lenMod - 4, ",stdsql")) {
+ if(lenMod > 6 && !strcasecmp((char*) szMod + lenMod - 7, ",stdsql")) {
pTpl->optFormatForSQL = 2;
DBGPRINTF("strgen suports the stdsql option\n");
- } else if(lenMod > 3 && !strcasecmp((char*) szMod+ lenMod - 7, ",sql")) {
+ } else if(lenMod > 3 && !strcasecmp((char*) szMod+ lenMod - 4, ",sql")) {
pTpl->optFormatForSQL = 1;
DBGPRINTF("strgen suports the sql option\n");
}