X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsiglent-sds%2Fprotocol.c;fp=src%2Fhardware%2Fsiglent-sds%2Fprotocol.c;h=23951c710f92ff57b9a9305df37bb23d6a14f1f8;hb=a9a38e75114d3ebbf19f5a0220e43a922615c6b6;hp=40f7d104db549403b38b4d6209e1491f4cfee960;hpb=04fe775be6f272f367d1156f29564eed11fbe059;p=libsigrok.git diff --git a/src/hardware/siglent-sds/protocol.c b/src/hardware/siglent-sds/protocol.c index 40f7d104..23951c71 100644 --- a/src/hardware/siglent-sds/protocol.c +++ b/src/hardware/siglent-sds/protocol.c @@ -684,10 +684,10 @@ SR_PRIV int siglent_sds_get_dev_cfg_horizontal(const struct sr_dev_inst *sdi) g_free(cmd); if (res != SR_OK) return SR_ERR; - if (strcasestr(samplePointsString, "Mpts") != NULL) { + if (g_strstr_len(samplePointsString, -1, "Mpts") != NULL) { samplePointsString[strlen(samplePointsString) - 4] = '\0'; - if (strcasestr(samplePointsString, ".") != NULL) { + if (g_strstr_len(samplePointsString, -1, ".") != NULL) { first = strtok(samplePointsString, "."); concat = strcat(first, strtok(NULL, ".")); if (sr_atof_ascii(concat, &fvalue) != SR_OK || fvalue == 0.0) {