changeset 32687:8bb538487b50

Fix printf format string warning fixes this warning: asfinfo.c: In function 'print_video_header': asfinfo.c:158: warning: format '%.4s' expects type 'char *', but argument 3 has type 'long int *'
author siretart
date Sun, 09 Jan 2011 20:02:45 +0000
parents cf80c8f31a1b
children 675679c82f5f
files TOOLS/asfinfo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/asfinfo.c	Sun Jan 09 18:47:46 2011 +0000
+++ b/TOOLS/asfinfo.c	Sun Jan 09 20:02:45 2011 +0000
@@ -155,7 +155,7 @@
   printf("  biHeight %ld\n", h->biHeight);
   printf("  biPlanes %d\n", h->biPlanes);
   printf("  biBitCount %d\n", h->biBitCount);
-  printf("  biCompression %ld='%.4s'\n", h->biCompression, &h->biCompression);
+  printf("  biCompression %ld='%.4s'\n", h->biCompression, (const char*)&h->biCompression);
   printf("  biSizeImage %ld\n", h->biSizeImage);
   printf("===========================\n");
 }