Fix build on AMD64 (and probably other arches where size_t != int).

Submitted by:	Tinderbox
MFC after:	2 weeks
This commit is contained in:
sobomax 2005-01-30 06:43:17 +00:00
parent 464d7f1e2a
commit c1d75210e2

View File

@ -50,7 +50,8 @@ exec_shell_imgact(imgp)
{
const char *image_header = imgp->image_header;
const char *ihp;
int error, length, offset;
int error, offset;
size_t length;
/* a shell script? */
if (((const short *) image_header)[0] != SHELLMAGIC)