Fix small stack overwrite of layer_name buffer in PSD writer.
Botched last commit of PSD fix.  Meant to have this simpler version.