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 --- extcap/ssh-base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extcap/ssh-base.c') diff --git a/extcap/ssh-base.c b/extcap/ssh-base.c index cc50417137..87c364f972 100644 --- a/extcap/ssh-base.c +++ b/extcap/ssh-base.c @@ -40,12 +40,12 @@ ssh_session create_ssh_connection(const char* hostname, const unsigned int port, /* Open session and set options */ sshs = ssh_new(); if (sshs == NULL) { - *err_info = g_strdup_printf("Can't create ssh session"); + *err_info = g_strdup("Can't create ssh session"); return NULL; } if (!hostname) { - *err_info = g_strdup_printf("Hostname needed"); + *err_info = g_strdup("Hostname needed"); goto failure; } -- cgit v1.2.3