summaryrefslogtreecommitdiff
path: root/pcap-usb-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap-usb-linux.c')
-rw-r--r--pcap-usb-linux.c2
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: