summaryrefslogtreecommitdiff
path: root/packages/net-tools/files/net-tools-1.60-trailingblank.patch
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2006-10-26 12:38:27 +0000
committerHolger Freyther <zecke@selfish.org>2006-10-26 12:38:27 +0000
commit7bfd04605061f3335e7ca19dd968af136fb22201 (patch)
tree468a8b668657c1577c0780a038dbec2b5c5926f8 /packages/net-tools/files/net-tools-1.60-trailingblank.patch
parent04b998447b47f8179c091b6ea1e84dc4485db3fa (diff)
packages: Add net-tools to OpenEmbedded
Diffstat (limited to 'packages/net-tools/files/net-tools-1.60-trailingblank.patch')
-rw-r--r--packages/net-tools/files/net-tools-1.60-trailingblank.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/net-tools/files/net-tools-1.60-trailingblank.patch b/packages/net-tools/files/net-tools-1.60-trailingblank.patch
new file mode 100644
index 0000000000..8c752282e2
--- /dev/null
+++ b/packages/net-tools/files/net-tools-1.60-trailingblank.patch
@@ -0,0 +1,26 @@
+--- net-tools-1.60/hostname.c.trailingblank 2001-04-08 19:04:23.000000000 +0200
++++ net-tools-1.60/hostname.c 2003-08-19 14:21:17.000000000 +0200
+@@ -153,13 +153,19 @@
+
+ switch (c) {
+ case 'a':
+- while (hp->h_aliases[0])
+- printf("%s ", *hp->h_aliases++);
++ while (hp->h_aliases[0]) {
++ printf("%s", *hp->h_aliases++);
++ if (hp->h_aliases[0])
++ printf(" ");
++ }
+ printf("\n");
+ break;
+ case 'i':
+- while (hp->h_addr_list[0])
+- printf("%s ", inet_ntoa(*(struct in_addr *) *hp->h_addr_list++));
++ while (hp->h_addr_list[0]) {
++ printf("%s", inet_ntoa(*(struct in_addr *) *hp->h_addr_list++));
++ if (hp->h_addr_list[0])
++ printf(" ");
++ }
+ printf("\n");
+ break;
+ case 'd':