FreeDOS kernel - implements the core MS-DOS/PC-DOS (R) compatible operating system. It is derived from Pat Villani's DOS-C kernel and released under the GPL v2 or later. Please see http://www.freedos.org/ for more details about the FreeDOS (TM) Project.
https://github.com/FDOS/kernel/blob/bf53e22d7a1797474824855c04e420a4a36b5755/utils/exeflat.c#L445
What's the purpose of this loop? It seems to decrement
len
but repeatedly compares the same*str
?