Index: server-src/reporter.c
===================================================================
RCS file: /cvsroot/amanda/amanda/server-src/reporter.c,v
retrieving revision 1.44.2.20
diff -u -r1.44.2.20 reporter.c
--- server-src/reporter.c	2001/07/19 21:49:44	1.44.2.20
+++ server-src/reporter.c	2001/09/25 23:03:03
@@ -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);
