On Mon, May 7, 2012 at 10:45 PM, Pete Batard <p...@akeo.ie> wrote: > On 2012.05.07 12:32, Xiaofan Chen wrote: >> There is one minor warning under OpenBSD (5.1 Current). >> libusbx-1.0.11-rc1/examples/xusb.c:781: >> warning: strcat() is almost always misused, please >> use strlcat() > > I am also testing with OpenBSD 5.1 (installed using > i386/install51.iso), and > I'm not seeing the warning ATM. > What did you use to install your OpenBSD platform?
It is the snapshot release, which is more recent than 5.1 release. Snapshot: http://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/ 5.1: http://ftp.openbsd.org/pub/OpenBSD/5.1/i386/ > I guess the only option left is to remove the strcat call > altogether, which doesn't seem too difficult. Can you > apply the attached patch on your OpenBSD > platform and confirm the warning goes away? > Yes this is good and now there are no warning messages after applying the patch. Thanks. -- Xiaofan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel