diff options
author | Stuart Shelton <stuart@shelton.me> | 2017-12-10 14:33:27 +0000 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2017-12-10 14:33:27 +0000 |
commit | 1a878a754d441e5f690c1690ac020c91495741e2 (patch) | |
tree | 66c423763f6519a3fcd4764904b346b675ff292e /net-analyzer/ntopng/files/pointer-cmp.patch | |
parent | Update media-gfx/graphviz-2.38.0-r1 (diff) | |
download | srcshelton-1a878a754d441e5f690c1690ac020c91495741e2.tar.gz srcshelton-1a878a754d441e5f690c1690ac020c91495741e2.tar.bz2 srcshelton-1a878a754d441e5f690c1690ac020c91495741e2.zip |
Update net-analyzer/ntopng-3.0-r1
Diffstat (limited to 'net-analyzer/ntopng/files/pointer-cmp.patch')
-rw-r--r-- | net-analyzer/ntopng/files/pointer-cmp.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net-analyzer/ntopng/files/pointer-cmp.patch b/net-analyzer/ntopng/files/pointer-cmp.patch new file mode 100644 index 00000000..11fb47ca --- /dev/null +++ b/net-analyzer/ntopng/files/pointer-cmp.patch @@ -0,0 +1,12 @@ +diff -Naur ntopng-3.0-orig/src/AddressResolution.cpp ntopng-3.0/src/AddressResolution.cpp +--- ntopng-3.0-orig/src/AddressResolution.cpp 2017-06-01 00:18:57.000000000 -0700 ++++ ntopng-3.0/src/AddressResolution.cpp 2017-11-27 23:13:50.158163187 -0800 +@@ -52,7 +52,7 @@ + u_int numeric_ip_len; + + snprintf(query, sizeof(query), "%s", _numeric_ip); +- if((at = strchr(query, '@')) != '\0') at[0] = '\0'; ++ if((at = strchr(query, '@')) != NULL) at[0] = '\0'; + numeric_ip = query; + numeric_ip_len = strlen(numeric_ip)-1; + |