summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-01-26 12:23:53 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-01-26 12:23:53 +0100
commit855f3492382cf59722b96813b25f68b034802157 (patch)
tree8ef0ccc51949cdc5d3805ed3bb5eed4b09e80089 /runtime
parentb88c4885b4d2e7d6a4788c796a2f6c21eb0f43fc (diff)
parent7f4972b9fa132c7e5c8077f58e3e2845326884af (diff)
downloadrsyslog-855f3492382cf59722b96813b25f68b034802157.tar.gz
rsyslog-855f3492382cf59722b96813b25f68b034802157.tar.xz
rsyslog-855f3492382cf59722b96813b25f68b034802157.zip
Merge branch 'beta'
Diffstat (limited to 'runtime')
-rw-r--r--runtime/conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/conf.c b/runtime/conf.c
index d6e6ccf6..e7c1576f 100644
--- a/runtime/conf.c
+++ b/runtime/conf.c
@@ -567,6 +567,7 @@ finalize_it:
* rgerhards, 2007-07-25
* updated to include OMSR pointer -- rgerhards, 2007-07-27
* updated to include template name -- rgerhards, 2008-03-28
+ * rgerhards, 2010-01-19: file names end at the first space
*/
rsRetVal
cflineParseFileName(uchar* p, uchar *pFileName, omodStringRequest_t *pOMSR, int iEntry, int iTplOpts, uchar *pszTpl)
@@ -579,7 +580,7 @@ cflineParseFileName(uchar* p, uchar *pFileName, omodStringRequest_t *pOMSR, int
pName = pFileName;
i = 1; /* we start at 1 so that we reseve space for the '\0'! */
- while(*p && *p != ';' && i < MAXFNAME) {
+ while(*p && *p != ';' && *p != ' ' && i < MAXFNAME) {
*pName++ = *p++;
++i;
}