freebsd-ports/misc/zaptel/files/patch-zaptel::zt_zone.c
Maxim Sobolev 3122d1afe6 Update to 1.4.6.
Submitted by:	Oleksandr Tymoshenko
2007-07-22 08:58:36 +00:00

23 lines
465 B
C

$FreeBSD$
--- 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");