custom: fix conflicting use of transform_length
[scan-build] fix unintended self assignment

The alias should use the same icon as it's target IIRC.
[warningectomy] make my_log static to avoid mssing prototype complaints