1
0

patch-src_serdisp_connect_c 929 B

123456789101112131415161718192021
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- serdisplib-1.97.8.orig/src/serdisp_connect.c 2008-07-20 09:50:41.000000000 +0200
  3. +++ serdisplib-1.97.8/src/serdisp_connect.c 2009-05-31 16:27:03.000000000 +0200
  4. @@ -304,7 +304,7 @@ serdisp_CONN_t* SDCONN_open(const char s
  5. sdcd->sdcdev = (sdcdev == 0 || strlen((char*)sdcdev) > 0) ? (char*)sdcdev : SERDISP_DEFAULTDEVICE;
  6. /* split into protocol and device name */
  7. - idx = index(sdcd->sdcdev, ':');
  8. + idx = strchr(sdcd->sdcdev, ':');
  9. if (!idx) {
  10. devname = sdcd->sdcdev;
  11. /* look if a default connection type can be found for given device */
  12. @@ -1405,7 +1405,7 @@ serdisp_CONN_t* SDCONN_import_PP(int dir
  13. int SDCONN_getsignalindex(const char str[], short conntype, short hardwaretype) {
  14. int i;
  15. int n = strlen(str);
  16. - char* idxpos = index(str, ',');
  17. + char* idxpos = strchr(str, ',');
  18. if (idxpos)
  19. n = serdisp_ptrstrlen(idxpos, str);