aboutsummaryrefslogtreecommitdiff
path: root/pcap-new.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-02-07 14:04:29 -0800
committerGuy Harris <guy@alum.mit.edu>2019-02-07 14:04:29 -0800
commitbba01b1e7f5d5909c6b82a0d16b9373b07360c4c (patch)
tree034437b163ade91ee81188b5d35066bfcb91bc2a /pcap-new.c
parentd5788214cbfb04d0aee4b79679c00865683bc749 (diff)
Fix comments.
Diffstat (limited to 'pcap-new.c')
-rw-r--r--pcap-new.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-new.c b/pcap-new.c
index 7ddea91b..97829893 100644
--- a/pcap-new.c
+++ b/pcap-new.c
@@ -160,7 +160,7 @@ int pcap_findalldevs_ex(const char *source, struct pcap_rmtauth *auth, pcap_if_t
stringlen = PCAP_TEXT_SOURCE_ADAPTER_LEN
+ 1 + 1 /* space and ' */
+ strlen(localdesc)
- + 1 + 1 /* space and ' */
+ + 1 + 1 /* ' and space */
+ PCAP_TEXT_SOURCE_ON_LOCAL_HOST_LEN
+ 1; /* terminating '\0' */
desc = (char *)malloc(stringlen);
@@ -326,7 +326,7 @@ int pcap_findalldevs_ex(const char *source, struct pcap_rmtauth *auth, pcap_if_t
stringlen = PCAP_TEXT_SOURCE_FILE_LEN
+ 1 + 1 /* space and ' */
+ strlen(filename)
- + 1 + 1 /* space and ' */
+ + 1 + 1 /* ' and space */
+ PCAP_TEXT_SOURCE_ON_LOCAL_HOST_LEN
+ 1; /* terminating '\0' */
dev->description = (char *)malloc(stringlen);