[totem] properties: Don't call g_strdup_printf() on a placeholder-less-string



commit 6d38d0fef2794f371cdb81b1998ee3e2a8d2acc8
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Jul 1 18:24:25 2011 +0100

    properties: Don't call g_strdup_printf() on a placeholder-less-string
    
    Use g_strdup() instead. See commit bafff377e2207f92cdd33ebc6e770d9970e74ee1.

 src/properties/bacon-video-widget-properties.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/properties/bacon-video-widget-properties.c b/src/properties/bacon-video-widget-properties.c
index cff4ae6..a83d0ed 100644
--- a/src/properties/bacon-video-widget-properties.c
+++ b/src/properties/bacon-video-widget-properties.c
@@ -170,7 +170,7 @@ totem_time_to_string_text (gint64 msecs)
 		string = g_strdup_printf (C_("time", "%s %s"), mins, secs);
 	} else if (sec > 0) {
 		/* 10 seconds */
-		string = g_strdup_printf (secs);
+		string = g_strdup (secs);
 	} else {
 		/* 0 seconds */
 		string = g_strdup (_("0 seconds"));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]