Fix minor security issue in printer example