Index: server-src/reporter.c
===================================================================
RCS file: /cvsroot/amanda/amanda/server-src/reporter.c,v
retrieving revision 1.44.2.20
retrieving revision 1.44.2.21
diff -u -r1.44.2.20 -r1.44.2.21
--- server-src/reporter.c	19 Jul 2001 21:49:44 -0000	1.44.2.20
+++ server-src/reporter.c	26 Sep 2001 15:47:09 -0000	1.44.2.21
@@ -1123,10 +1123,20 @@
     wTape= ColWidth(TapeTime, TapeRate);
 
     /* print centered top titles */
-    h= (wDump-strlen(ds))/2;
+    h= strlen(ds);
+    if (h > wDump) {
+	h= 0;
+    } else {
+	h= (wDump-h)/2;
+    }
     fprintf(mailf, "%*s", w1+h, "");
     fprintf(mailf, "%-*s", wDump-h, ds);
-    h= (wTape-strlen(ts))/2;
+    h= strlen(ts);
+    if (h > wTape) {
+	h= 0;
+    } else {
+	h= (wTape-h)/2;
+    }
     fprintf(mailf, "%*s", h, "");
     fprintf(mailf, "%-*s", wTape-h, ts);
     fputc('\n', mailf);
