But if there were "no extension", that would be a 0-length extension, rather than a 3 character extension with 3 spaces.
Even if it has to be 3 characters, shouldn't they at least be \0?
Even if it has to be 3 characters, shouldn't they at least be \0?