replace the dashpattern string pointer with a fixed length character array