restorevol: replace snprintf with asprintf