Looks like a logic inversion mistake. Not clear how bad this issue is, as other code related to image metadata seems to expect 1024 char max size too (e.g. `MAX_METADATA_STR` define in `ed_draw.cc`. But this is potentially a very bad issue, and the fix seems safe enough for 4.4 still. Should also be backported to active LTSs. Pull Request: https://projects.blender.org/blender/blender/pulls/135983