From 57ef06e242dbbce390547d9711f810fc60829219 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 5 Jun 2016 22:24:47 -0400 Subject: *_stdup_printf -> strdup for "single string only" formatting. Done for performance improvements. This could probably be done in checkAPIs.pl, but this was just a quick manual check with grepping. Change-Id: I91ff102cb528bb00fa2f65489de53890e7e46f2d Reviewed-on: https://code.wireshark.org/review/15751 Reviewed-by: Michael Mann Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Jaap Keuter --- capchild/capture_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'capchild') diff --git a/capchild/capture_sync.c b/capchild/capture_sync.c index f15110f995..5080907c99 100644 --- a/capchild/capture_sync.c +++ b/capchild/capture_sync.c @@ -1332,7 +1332,7 @@ sync_interface_set_80211_chan(const gchar *iface, const char *freq, const gchar if (type) opt = g_strdup_printf("%s,%s,%s,%s", freq, type, center_freq1, center_freq2); else - opt = g_strdup_printf("%s", freq); + opt = g_strdup(freq); if (!opt) { *primary_msg = g_strdup("Out of mem."); -- cgit v1.2.1