diff options
author | Henning Makholm <henning@makholm.net> | 2006-02-11 18:00:00 (EST) |
---|---|---|
committer | Julien Jorge <julien.jorge@stuff-o-matic.com> | 2013-01-10 16:03:45 (EST) |
commit | 00a8b13b5bf8cf2c367a0db3ae09086e45230968 (patch) | |
tree | 2cf634f141fc82b26bf1cfcc9de4c6f194208905 /utils.c | |
parent | 03c71dffc5d7bcb4686260b21aaa268d68310613 (diff) | |
download | xcftools-00a8b13b5bf8cf2c367a0db3ae09086e45230968.zip xcftools-00a8b13b5bf8cf2c367a0db3ae09086e45230968.tar.gz xcftools-00a8b13b5bf8cf2c367a0db3ae09086e45230968.tar.bz2 |
Import of release 0.9
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) ; } } |