File iptraf-3.0.0-gcc45.patch of Package iptraf

--- src/ifstats.c.orig	2010-02-13 23:59:52.000000000 +0100
+++ src/ifstats.c	2010-02-14 00:01:35.000000000 +0100
@@ -1250,7 +1250,7 @@
 
     if ((withall) && (list != NULL)) {
         ptmp = malloc(sizeof(struct iflist));
-        strcpy(ptmp->ifname, "All interfaces");
+        strncpy(ptmp->ifname, "All interfaces", sizeof (ptmp->ifname));
 
         ptmp->prev_entry = NULL;
         list->prev_entry = ptmp;
openSUSE Build Service is sponsored by