avoid PATH_MAX/string copies usage
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Dec 2009 08:37:15 +0000 (03:37 -0500)
committerGerd von Egidy <gerd.von.egidy@intra2net.com>
Mon, 4 Jan 2010 09:46:49 +0000 (10:46 +0100)
commit3d0099ee1c704388a5300474900daed44f18f75e
tree05691b0ca2aaeb19519226d9cfc87d508bd26240
parentc56d1f385d1f03f7e55b91dfc3f07007a6a562f4
avoid PATH_MAX/string copies usage

The new ftdi_usb_open_string() func breaks mingw builds where PATH_MAX is
not defined.  Rather than adding fallback code, compare the path strings
piece by piece to avoid the string copy overhead in the process.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
src/ftdi.c