From fccba1af2aae9a90f117b3ae2232f5b60a7e9f63 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 5 Sep 2013 09:21:53 +0200 Subject: use standard snprintf() instead of GLib g_snprintf() --- src/DespotifyUtils.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/DespotifyUtils.cxx') diff --git a/src/DespotifyUtils.cxx b/src/DespotifyUtils.cxx index 058626dfc..863036464 100644 --- a/src/DespotifyUtils.cxx +++ b/src/DespotifyUtils.cxx @@ -91,10 +91,11 @@ mpd_despotify_tag_from_track(struct ds_track *track) if (!track->has_meta_data) return tag; - g_snprintf(tracknum, sizeof(tracknum), "%d", track->tracknumber); - g_snprintf(date, sizeof(date), "%d", track->year); - g_snprintf(comment, sizeof(comment), "Bitrate %d Kbps, %sgeo restricted", - track->file_bitrate / 1000, track->geo_restricted ? "" : "not "); + snprintf(tracknum, sizeof(tracknum), "%d", track->tracknumber); + snprintf(date, sizeof(date), "%d", track->year); + snprintf(comment, sizeof(comment), "Bitrate %d Kbps, %sgeo restricted", + track->file_bitrate / 1000, + track->geo_restricted ? "" : "not "); tag->AddItem(TAG_TITLE, track->title); tag->AddItem(TAG_ARTIST, track->artist->name); tag->AddItem(TAG_TRACK, tracknum); -- cgit v1.2.3