Pass sizeof buffer to cf_expand_variables