diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-02-07 14:04:29 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-02-07 14:04:29 -0800 |
commit | bba01b1e7f5d5909c6b82a0d16b9373b07360c4c (patch) | |
tree | 034437b163ade91ee81188b5d35066bfcb91bc2a /pcap-new.c | |
parent | d5788214cbfb04d0aee4b79679c00865683bc749 (diff) |
Fix comments.
Diffstat (limited to 'pcap-new.c')
-rw-r--r-- | pcap-new.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |