$FreeBSD: ports/misc/zaptel/files/patch-zaptel::zt_zone.c,v 1.1 2007/07/22 08:58:36 sobomax Exp $ --- zaptel/zt_zone.c +++ zaptel/zt_zone.c @@ -326,7 +326,7 @@ int x; int space; int res; - int addr; + unsigned long addr; /* XXX Unnecessary XXX */ memset(samples, 0, sizeof(samples)); @@ -334,7 +334,7 @@ memset(next, 0, sizeof(next)); memset(&th, 0, sizeof(th)); - bcopy((void *)data, &addr, 4); + bcopy((void *)data, &addr, sizeof(addr)); data = addr; if(copyin( (caddr_t)addr, &th, sizeof(th))) printf("copyin failed\n");