diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/iptraf-ng/files/iptraf-ng-1.1.4-sprintf-format.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/iptraf-ng/files/iptraf-ng-1.1.4-sprintf-format.patch')
-rw-r--r-- | net-analyzer/iptraf-ng/files/iptraf-ng-1.1.4-sprintf-format.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-analyzer/iptraf-ng/files/iptraf-ng-1.1.4-sprintf-format.patch b/net-analyzer/iptraf-ng/files/iptraf-ng-1.1.4-sprintf-format.patch new file mode 100644 index 000000000000..96f252895cb2 --- /dev/null +++ b/net-analyzer/iptraf-ng/files/iptraf-ng-1.1.4-sprintf-format.patch @@ -0,0 +1,20 @@ +--- a/src/othptab.c ++++ b/src/othptab.c +@@ -410,7 +410,7 @@ + break; + } + +- sprintf(scratchpad, rarp_mac_addr); ++ sprintf(scratchpad, "%s", rarp_mac_addr); + strcat(msgstring, scratchpad); + wattrset(table->othpwin, ARPATTR); + break; +@@ -485,7 +485,7 @@ + wattrset(table->othpwin, UNKNIPATTR); + protptr = getprotobynumber(entry->protocol); + if (protptr != NULL) { +- sprintf(protname, protptr->p_aliases[0]); ++ sprintf(protname, "%s", protptr->p_aliases[0]); + } else { + sprintf(protname, "IP protocol"); + unknown = 1; |