From bba01b1e7f5d5909c6b82a0d16b9373b07360c4c Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 7 Feb 2019 14:04:29 -0800 Subject: Fix comments. --- pcap-new.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pcap-new.c') 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); -- cgit v1.2.3