vmem: do not pass NULL to sprintf("%s")