mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 05:49:57 +00:00
2a63f028e5
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit ff5d50b43f)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
Index: iptraf-3.0.0/src/othptab.c
|
|
===================================================================
|
|
--- iptraf-3.0.0.orig/src/othptab.c
|
|
+++ iptraf-3.0.0/src/othptab.c
|
|
@@ -335,7 +335,7 @@ void printothpentry(struct othptable *ta
|
|
break;
|
|
}
|
|
|
|
- sprintf(scratchpad, inet_ntoa(saddr));
|
|
+ sprintf(scratchpad, "%s", inet_ntoa(saddr));
|
|
strcat(msgstring, scratchpad);
|
|
wattrset(table->othpwin, ARPATTR);
|
|
break;
|
|
@@ -354,7 +354,7 @@ void printothpentry(struct othptable *ta
|
|
break;
|
|
}
|
|
|
|
- sprintf(scratchpad, rarp_mac_addr);
|
|
+ sprintf(scratchpad, "%s", rarp_mac_addr);
|
|
strcat(msgstring, scratchpad);
|
|
wattrset(table->othpwin, ARPATTR);
|
|
break;
|
|
@@ -421,7 +421,7 @@ void printothpentry(struct othptable *ta
|
|
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;
|