diff options
author | Guy Harris <gharris@sonic.net> | 2022-03-11 17:00:25 -0800 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2022-03-11 17:00:25 -0800 |
commit | c490b5f764988fc67a2dbcf75e988e96e1790292 (patch) | |
tree | 7138d4c10ff85876db8a1eca09f03bf9d8dc0fad /pcap-usb-linux.c | |
parent | 92c547194ffa85c89b579658f1cc752fad98666f (diff) | |
download | libpcap-c490b5f764988fc67a2dbcf75e988e96e1790292.tar.gz |
pcap-usb-linux: suppress format truncation warning.
Diffstat (limited to 'pcap-usb-linux.c')
-rw-r--r-- | pcap-usb-linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c index 5fd24264..9f84852b 100644 --- a/pcap-usb-linux.c +++ b/pcap-usb-linux.c @@ -539,9 +539,11 @@ usb_activate(pcap_t* handle) /* * We didn't have permission to open it. */ +DIAG_OFF_FORMAT_TRUNCATION snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Attempt to open %s failed with EACCES - root privileges may be required", full_path); +DIAG_ON_FORMAT_TRUNCATION return PCAP_ERROR_PERM_DENIED; default: |