diff: avoid stack-buffer-read-overrun for very long name