tuple: fix swallowing $ (closes #67)

pull/70/head
William Pitcock 2014-07-01 23:44:49 -05:00
parent 0161be992e
commit 84050f8fda
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ pkg_tuple_parse(pkg_list_t *vars, const char *value)
for (ptr = value; *ptr != '\0' && bptr - buf < PKG_BUFSIZE; ptr++)
{
if (*ptr != '$')
if (*ptr != '$' || (*ptr == '$' && *(ptr + 1) != '{'))
*bptr++ = *ptr;
else if (*(ptr + 1) == '{')
{