When old and new names of layers/groups are same, garbage string is displayed. This is because `oldname` char pointer is referenced to `node.name`. After function execution, `oldname` memory is freed in `interface_handler` (see `after.rename_orig`), thus displays garbage string. Fix is to copy the content of `oldname` instead of referencing it. Pull Request: https://projects.blender.org/blender/blender/pulls/111173