Index: Makefile
===================================================================
RCS file: /cvs/ports/net/ntop/Makefile,v
retrieving revision 1.35
diff -u -p -u -p -r1.35 Makefile
--- Makefile	23 Jan 2014 17:21:26 -0000	1.35
+++ Makefile	26 Mar 2015 02:32:27 -0000
@@ -3,7 +3,7 @@
 COMMENT=	network usage, interface similar to top(1)
 
 DISTNAME=	ntop-1.1
-REVISION=	2
+REVISION=	3
 DISTFILES=	${DISTNAME}-src.tar.gz
 CATEGORIES=	net
 MASTER_SITES=	ftp://totem.fix.no/pub/mirrors/misc/
Index: patches/patch-report.c
===================================================================
RCS file: patches/patch-report.c
diff -N patches/patch-report.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-report.c	26 Mar 2015 02:32:27 -0000
@@ -0,0 +1,33 @@
+--- report.c.orig	Wed Apr 28 10:55:09 1999
++++ report.c	Wed Mar 25 19:19:38 2015
+@@ -136,17 +136,18 @@
+ 
+ void printHeader(int reportType) {
+   char progName[255], buf[BUF_SIZE], tmpBuf[24], *c, *d, *e;
+-  int idx;
++  int idx, progTermIdx;
+ 
+   memset(buf, 0, sizeof(buf));
+ 
+   if(!webMode) {
+ #ifdef HAVE_CURSES
++    progTermIdx = (COLS < 80) ? COLS-2 : 80;
+     clrscr(); /* clear the screen */  
+-    sprintf(progName,  " ntop v.%s %s [%s] listening on %s",
++    snprintf(progName, 255, " ntop v.%s %s [%s] listening on %s",
+ 	    version, THREAD_MODE, osName, device);
+     /* avoid long lines on small screens */
+-    progName[80] = '\0'; progName[COLS-2] = '\0'; 
++    progName[progTermIdx] = '\0'; 
+     mvprintw(0, 40 - (strlen(progName)/2), progName);
+ 
+     switch(screenNumber) {
+@@ -302,7 +303,7 @@
+ 	    "Host", "Act", "-Rcvd-", "Sent", c, d, e);
+ 
+ #ifdef HAVE_CURSES
+-  buf[COLS-2] = '\0'; /* avoid long lines on small screens */
++  buf[progTermIdx] = '\0'; /* avoid long lines on small screens */
+   attrset(A_REVERSE); 
+   mvprintw(2, 0, buf);  
+   attrset(A_NORMAL);
