Merge branch 'c6226-patch-1' of https://github.com/c6226/rsyslog

This commit is contained in:
Rainer Gerhards 2015-12-16 09:19:34 +01:00
commit 21d981a05f

View File

@ -688,7 +688,7 @@ static void doOptions(unsigned char **pp, struct templateEntry *pTpe)
while(*p && *p != '%' && *p != ':') {
/* outer loop - until end of options */
i = 0;
while((i < sizeof(Buf) / sizeof(char)) &&
while((i < ((sizeof(Buf) / sizeof(uchar))-sizeof(uchar))) &&
*p && *p != '%' && *p != ':' && *p != ',') {
/* inner loop - until end of ONE option */
Buf[i++] = tolower((int)*p);