The helper function is a wrapper for snprintf and strdup which removes some of the redundant code in dbfwfilter.