tcpdump mailing list archives

Error in the "strcat" function


From: "Adelmo Silva" <adelmojs () hotmail com>
Date: Fri, 02 Feb 2007 02:19:23 -0200

Hello,
I have a error:

debian:/home/adelmojs/MONOGRAFIA# gcc teste1.c -lpcap -o teste1
teste1.c: In function ‘SNIFFER’:
teste1.c:294: warning: passing argument 2 of ‘strcat’ makes pointer from
integer without a cast
teste1.c:294: error: incompatible types in assignment

THE LINE 294 HAS:
string1 = strcat(string1,ips1[i]);

WHERE string1 is a string with 15 positions and ips1 is a u_char pointer.


Thanks for who helps me.





Adelmo

_________________________________________________________________
Mande torpedos SMS do seu messenger para o celular dos seus amigos http://mobile.msn.com/

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: