From: Kaj-Michael Lang Date: Tue, 15 Jan 2008 15:01:45 +0000 (+0200) Subject: Use g_snprintf X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d7336fc32b6a809fea48049ebd002ceb592896e;p=mapper Use g_snprintf --- diff --git a/src/track.c b/src/track.c index f6194c5..4cb8ea8 100644 --- a/src/track.c +++ b/src/track.c @@ -80,7 +80,7 @@ gfloat sum; sum = track_calculate_distance_from(point); -snprintf(buffer, sizeof(buffer), "%s: %.02f %s", _("Distance"), +g_snprintf(buffer, sizeof(buffer), "%s: %.02f %s", _("Distance"), sum * UNITS_CONVERT[_units], UNITS_TEXT[_units]); MACRO_BANNER_SHOW_INFO(_window, buffer); }