diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-31 16:50:53 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-31 16:50:53 +0200 |
commit | eee3718f1ec72f689f3a241af008e985819826df (patch) | |
tree | 6c3f58ac7adb7e2ce85f53ed71a418b656a5b162 /package/serdisplib/patches/patch-src_serdisp_connect_usb_c | |
parent | b74845e7a1608a96af70e1b3ae4c6c28e5052e7a (diff) | |
parent | 1cd31f169fab4ab0ce45617c161da3fec9f7359d (diff) |
Merge branch 'master' of ssh://openadk.org/git/openadk
Diffstat (limited to 'package/serdisplib/patches/patch-src_serdisp_connect_usb_c')
-rw-r--r-- | package/serdisplib/patches/patch-src_serdisp_connect_usb_c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/package/serdisplib/patches/patch-src_serdisp_connect_usb_c b/package/serdisplib/patches/patch-src_serdisp_connect_usb_c new file mode 100644 index 000000000..c400ce875 --- /dev/null +++ b/package/serdisplib/patches/patch-src_serdisp_connect_usb_c @@ -0,0 +1,39 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- serdisplib-1.97.8.orig/src/serdisp_connect_usb.c 2008-07-30 23:44:23.000000000 +0200 ++++ serdisplib-1.97.8/src/serdisp_connect_usb.c 2009-05-31 16:28:11.000000000 +0200 +@@ -220,7 +220,7 @@ serdisp_CONN_t* SDCONNusb_open(const cha + #endif + + devname = (char*)sdcdev; +- idx = index(devname, ':'); ++ idx = strchr(devname, ':'); + + if (serdisp_ptrdistance(idx, devname) >= 18) { + sd_error(SERDISP_ENXIO, "%s(): invalid protocol (too long)", __func__); +@@ -230,7 +230,7 @@ serdisp_CONN_t* SDCONNusb_open(const cha + sdtools_strncpy(protocol, devname, serdisp_ptrdistance(idx, devname)); + devname = (idx+1); + +- idx = index(devname, ':'); ++ idx = strchr(devname, ':'); + + if (idx) { + if (serdisp_ptrdistance(idx, devname) >= 8) { +@@ -242,7 +242,7 @@ serdisp_CONN_t* SDCONNusb_open(const cha + occurrence = (int)strtol(buffer, 0, 10); + } + +- idx = index(devname, '/'); ++ idx = strchr(devname, '/'); + if (idx && serdisp_ptrdistance(idx, devname) < 7) { + sdtools_strncpy(buffer, devname, serdisp_ptrdistance(idx, devname)); + vendorID = (int)strtol(buffer, &endptr, 16); +@@ -254,7 +254,7 @@ serdisp_CONN_t* SDCONNusb_open(const cha + + + if (vendorID != -1) { +- idx = index(devname, '/'); ++ idx = strchr(devname, '/'); + if (!idx) idx = devname + strlen(devname); + if (serdisp_ptrdistance(idx, devname) < 7) { + sdtools_strncpy(buffer, devname, serdisp_ptrdistance(idx, devname)); |