Print a warning in case we cannot add more brandinfo because

we would overflow the MAX_BRANDS sized array.

Reviewed by:	kib
MFC After:	1 month
This commit is contained in:
bz 2009-10-03 10:50:00 +00:00
parent e0ede152d0
commit a0d8f55f8a

View File

@ -180,8 +180,11 @@ __elfN(insert_brand_entry)(Elf_Brandinfo *entry)
break;
}
}
if (i == MAX_BRANDS)
if (i == MAX_BRANDS) {
printf("WARNING: %s: could not insert brandinfo entry: %p\n",
__func__, entry);
return (-1);
}
return (0);
}