From 4c433bf6980f43c5fca5d7c86b167f50cc0295fd Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 1 Jun 2012 13:39:10 -0500 Subject: In indicator_power_device_get_time_details(), use g_strdup(foo) instead of g_strdup_printf("%s",foo) --- src/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/device.c b/src/device.c index 8752cb1..ac03009 100644 --- a/src/device.c +++ b/src/device.c @@ -541,14 +541,14 @@ indicator_power_device_get_time_details (const IndicatorPowerDevice * device, { *accessible_name = g_strdup_printf (_("%s"), device_name); *details = g_strdup_printf (_("%s"), device_name); - *short_details = g_strdup_printf ("%s", short_timestring); + *short_details = g_strdup (short_timestring); } else { /* TRANSLATORS: %2 is a time string, e.g. "1 hour 5 minutes" */ *accessible_name = g_strdup_printf (_("%s (%s left (%.0lf%%))"), device_name, detailed_timestring, percentage); *details = g_strdup_printf (_("%s (%s left)"), device_name, short_timestring); - *short_details = g_strdup_printf ("%s", short_timestring); + *short_details = g_strdup (short_timestring); } g_free (short_timestring); -- cgit v1.2.3