--- src/boxes.c.orig	2006-07-24 04:03:43.000000000 +1000
+++ src/boxes.c	2012-06-11 02:49:10.000000000 +1000
@@ -231,6 +231,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include <strings.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
@@ -1156,7 +1157,7 @@ static int list_styles()
             fprintf (opt.outfile, "none\n");
         }
 
-        fprintf (opt.outfile, "Minimum Box Dimensions: %d x %d  (width x height)\n",
+        fprintf (opt.outfile, "Minimum Box Dimensions: %lu x %lu  (width x height)\n",
                 d->minwidth, d->minheight);
 
         fprintf (opt.outfile, "Default Padding:        ");
@@ -1239,7 +1240,7 @@ static int list_styles()
                         fprintf (opt.outfile, "%s: ", shape_name[i]);
                     else {
                         space[strlen(shape_name[i])+2] = '\0';
-                        fprintf (opt.outfile, space);
+                        fprintf (opt.outfile, "%s", space);
                         space[strlen(shape_name[i])+2] = ' ';
                     }
                     if (j < d->shape[i].height) {
@@ -1247,7 +1248,7 @@ static int list_styles()
                     }
                     else {
                         space[d->shape[i].width+2] = '\0';
-                        fprintf (opt.outfile, space);
+                        fprintf (opt.outfile, "%s", space);
                         space[d->shape[i].width+2] = ' ';
                     }
                 }
