summaryrefslogtreecommitdiff
path: root/pcap-sita.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-06-17 12:29:40 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-06-17 12:41:04 +0200
commit8bb244d4defada04ac7472c7222ee032849e1826 (patch)
tree8fb4421b208350bc04040978c4c4120c9141ab81 /pcap-sita.c
parente835845199d19de64718f22776b5309253d1cdf2 (diff)
downloadlibpcap-8bb244d4defada04ac7472c7222ee032849e1826.tar.gz
SITA: Remove an unmatched ')'
Found with cppcheck. The error was: Checking pcap-sita.c ... pcap-sita.c:699:60: error: Unmatched ')'. Configuration: ''. [syntaxError] bigger_buffer = realloc(iff->name, strlen(newname) + 1)); ^
Diffstat (limited to 'pcap-sita.c')
-rw-r--r--pcap-sita.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-sita.c b/pcap-sita.c
index c7fdf378..03006332 100644
--- a/pcap-sita.c
+++ b/pcap-sita.c
@@ -696,7 +696,7 @@ static int process_client_data (char *errbuf) { /* returns: -1 = error, 0
prev_iff = iff;
newname = translate_IOP_to_pcap_name(u, iff->name, interfaceType); /* add a translation entry and get a point to the mangled name */
- bigger_buffer = realloc(iff->name, strlen(newname) + 1));
+ bigger_buffer = realloc(iff->name, strlen(newname) + 1);
if (bigger_buffer == NULL) { /* we now re-write the name stored in the interface list */
pcap_fmt_errmsg_for_errno(errbuf,
PCAP_ERRBUF_SIZE, errno, "realloc");