[haiku-commits] Change in haiku[master]: bin/network/arp: Fix -Wformat-security

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 30 Oct 2020 10:46:07 +0000

From Murai Takashi <tmurai01@xxxxxxxxx>:

Murai Takashi has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/3369 ;)


Change subject: bin/network/arp: Fix -Wformat-security
......................................................................

bin/network/arp: Fix -Wformat-security

Change-Id: Ia9ceb05b555fad32bed66ad232cc1b08a1b4a881
---
M src/bin/network/arp/arp.cpp
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/69/3369/1

diff --git a/src/bin/network/arp/arp.cpp b/src/bin/network/arp/arp.cpp
index dfabef0..d712a79 100644
--- a/src/bin/network/arp/arp.cpp
+++ b/src/bin/network/arp/arp.cpp
@@ -181,7 +181,7 @@
                                        first = false;
                                } else
                                        putchar(' ');
-                               printf(kFlags[i].name);
+                               printf("%s", kFlags[i].name);
                        }
                }
        }

--
To view, visit https://review.haiku-os.org/c/haiku/+/3369
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: Ia9ceb05b555fad32bed66ad232cc1b08a1b4a881
Gerrit-Change-Number: 3369
Gerrit-PatchSet: 1
Gerrit-Owner: Murai Takashi <tmurai01@xxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: bin/network/arp: Fix -Wformat-security - Gerrit