Don't include the '}' in the xlat name
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 Jul 2015 17:22:06 +0000 (13:22 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 9 Jul 2015 17:22:06 +0000 (13:22 -0400)
src/main/xlat.c

index 5e0865a..1656a2f 100644 (file)
@@ -1368,7 +1368,7 @@ static ssize_t xlat_tokenize_expansion(TALLOC_CTX *ctx, char *fmt, xlat_exp_t **
                *error = "No matching closing brace";
                return -1;      /* second character of format string */
        }
-       p++;
+       *p++ = '\0';
        *head = node;
        rad_assert(node->next == NULL);