Show all supported formats in show_help().

This commit is contained in:
Markus F.X.J. Oberhumer
2006-11-30 23:17:22 +01:00
parent 72a18f2b3f
commit 826312cbad
6 changed files with 139 additions and 87 deletions
+3 -1
View File
@@ -45,7 +45,8 @@ Packer::Packer(InputFile *f) :
uip(NULL), linker(NULL),
last_patch(NULL), last_patch_len(0), last_patch_off(0)
{
file_size = f->st.st_size;
if (fi != NULL)
file_size = fi->st.st_size;
uip = new UiPacker(this);
memset(&ph, 0, sizeof(ph));
}
@@ -66,6 +67,7 @@ void Packer::assertPacker()
assert(getVersion() >= 11);
assert(getVersion() <= 14);
assert(strlen(getName()) <= 13);
assert(strlen(getFullName(opt)) <= 26); // "i386-linux.kernel.bvmlinuz"
if (bele == NULL) fprintf(stderr, "%s\n", getName());
assert(bele != NULL);
#if 1