Summary: | DAHTOOL-00094: xusb_libusb: fails to compile on Debian 10 | ||
Reporter: | N A (InterLinked) | Labels: | |
Date Opened: | 2022-03-11 14:04:06.000-0600 | Date Closed: | |
Priority: | Major | Regression? | |
Status: | Triage/New | Components: | General |
Versions: | 3.1.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Debian 10 | Attachments: | |
Description: | I get this error when compiling DAHDI Tools on Debian 10:
make[3]: Entering directory '/usr/src/dahdi-tools-3.1.0/xpp/xtalk' CC libxtalk_la-xusb_libusb.lo xusb_libusb.c: In function ‘xusb_find_bypath’: xusb_libusb.c:500:41: error: ‘/’ directive output may be truncated writing 1 byte into a region of size between 0 and 4093 [-Werror=format-truncation=] snprintf(devpath_tail, PATH_MAX, "%3s/%3s", ^ xusb_libusb.c:500:4: note: ‘snprintf’ output between 8 and 8194 bytes into a destination of size 4096 snprintf(devpath_tail, PATH_MAX, "%3s/%3s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dev->bus->dirname, dev->filename); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors However, I don't get this error on Debian 11, which is odd. Anyways, here is a patch that resolves this: https://raw.githubusercontent.com/InterLinked1/phreakscript/master/patches/xusb.diff | ||
Comments: |