From 202913a6b3ad2803da8f3df164d0d3b65e0b1c7c Mon Sep 17 00:00:00 2001 From: Austin English Date: Tue, 11 Nov 2008 12:10:49 -0600 Subject: [PATCH] tools/fnt2bdf: fix a few compiler warnings --- tools/fnt2bdf.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/fnt2bdf.c b/tools/fnt2bdf.c index 1a14d6c..3c3134b 100644 --- a/tools/fnt2bdf.c +++ b/tools/fnt2bdf.c @@ -595,14 +595,14 @@ int main(int argc, char **argv) if( !(lpfont = (unsigned char*) realloc( lpfont, length )) ) { - fprintf(stderr, errorMemory ); + fprintf(stderr, "%s", errorMemory ); exit(1); } lseek( fd, offset, SEEK_SET ); if( read(fd, lpfont, length) != length ) { - fprintf(stderr, errorDLLRead ); + fprintf(stderr, "%s", errorDLLRead ); exit(1); } @@ -617,14 +617,14 @@ int main(int argc, char **argv) } else { - fprintf(stderr, errorEmpty ); + fprintf(stderr, "%s", errorEmpty ); exit(1); } free( lpdata ); } else { - fprintf(stderr, errorDLLRead); + fprintf(stderr, "%s", errorDLLRead); exit(1); } break; @@ -641,13 +641,13 @@ int main(int argc, char **argv) } else { - fprintf(stderr, errorFNTRead); + fprintf(stderr, "%s", errorFNTRead); exit(1); } break; case FILE_ERROR: - fprintf(stderr, errorFile ); + fprintf(stderr, "%s", errorFile ); exit(1); } close(fd); @@ -655,7 +655,7 @@ int main(int argc, char **argv) } else { - fprintf(stderr, errorOpenFile ); + fprintf(stderr, "%s", errorOpenFile ); exit(1); } } -- 1.6.0.4