Module Name: src Committed By: dogcow Date: Wed Apr 15 02:07:20 UTC 2009
Modified Files: src/usr.bin/crunch/crunchide: exec_aout.c Log Message: more signed/unsigned comparison fixes To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/usr.bin/crunch/crunchide/exec_aout.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/crunch/crunchide/exec_aout.c diff -u src/usr.bin/crunch/crunchide/exec_aout.c:1.9 src/usr.bin/crunch/crunchide/exec_aout.c:1.10 --- src/usr.bin/crunch/crunchide/exec_aout.c:1.9 Wed Jun 14 06:49:20 2000 +++ src/usr.bin/crunch/crunchide/exec_aout.c Wed Apr 15 02:07:20 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: exec_aout.c,v 1.9 2000/06/14 06:49:20 cgd Exp $ */ +/* $NetBSD: exec_aout.c,v 1.10 2009/04/15 02:07:20 dogcow Exp $ */ /* * Copyright (c) 1997 Christopher G. Demetriou. All rights reserved. @@ -29,7 +29,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: exec_aout.c,v 1.9 2000/06/14 06:49:20 cgd Exp $"); +__RCSID("$NetBSD: exec_aout.c,v 1.10 2009/04/15 02:07:20 dogcow Exp $"); #endif #include <unistd.h> @@ -83,7 +83,7 @@ if(fstat(inf, &infstat) == -1) return 0; - if(infstat.st_size < sizeof eh) + if(infstat.st_size < (ssize_t)sizeof eh) return 0; if(read(inf, &eh, sizeof eh) != sizeof eh) return 0;