From 00a8b13b5bf8cf2c367a0db3ae09086e45230968 Mon Sep 17 00:00:00 2001 From: Henning Makholm Date: Sat, 11 Feb 2006 18:00:00 -0500 Subject: Import of release 0.9 --- (limited to 'utils.c') diff --git a/utils.c b/utils.c index d7db8a8..bde0782 100644 --- a/utils.c +++ b/utils.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include "xcftools.h" @@ -45,7 +45,7 @@ void FatalGeneric(int status,const char* format,...) { va_list v; va_start(v,format); - fprintf(stderr,"%s: ",progname); + if( format ) fprintf(stderr,"%s: ",progname); vFatalGeneric(status,format,v); } @@ -71,7 +71,7 @@ xcfCheckspace(uint32_t addr,int spaceafter,const char *format,...) if( xcf_length < spaceafter || addr > xcf_length - spaceafter ) { va_list v; va_start(v,format); fprintf(stderr,"%s: %s\n ",progname,_("Corrupted or truncated XCF file")); - fprintf(stderr,"(%" PRIXPTR " bytes): ",(uintptr_t)xcf_length); + fprintf(stderr,"(0x%" PRIXPTR " bytes): ",(uintptr_t)xcf_length); vFatalGeneric(125,format,v) ; } } -- cgit v0.9.1