make sure we have a devmode before copying a string to the devicename; patch from...