From: Hans Date: Tue, 19 Sep 2023 20:36:21 +0000 (+0200) Subject: Increase max class string length to 64 X-Git-Tag: libserialport-0.1.2~7 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0221495d767626725657a366ab7826deb7b94529;p=libserialport.git Increase max class string length to 64 --- diff --git a/macosx.c b/macosx.c index 0d22bb6..0b03981 100644 --- a/macosx.c +++ b/macosx.c @@ -36,7 +36,7 @@ SP_PRIV enum sp_return get_port_details(struct sp_port *port) io_object_t ioport, ioparent; CFTypeRef cf_property, cf_bus, cf_address, cf_vendor, cf_product; Boolean result; - char path[PATH_MAX], class[16]; + char path[PATH_MAX], class[64]; DEBUG("Getting serial port list"); if (!(classes = IOServiceMatching(kIOSerialBSDServiceValue)))