Fix regression in compiler identification

This commit is contained in:
pancake 2020-03-03 18:42:20 +01:00
parent 0d776be8f9
commit dd9d36c10f
1 changed files with 1 additions and 1 deletions

View File

@ -4017,7 +4017,7 @@ char *Elf_(r_bin_elf_compiler)(ELFOBJ *bin) {
buf[sz] = 0;
const size_t buflen = strlen (buf);
char *nullbyte = buf + buflen;
if (nullbyte[0] && nullbyte[1] && buflen < sz) {
if (buflen != sz && nullbyte[1] && buflen < sz) {
nullbyte[0] = ' ';
}
buf[sz] = 0;