aboutsummaryrefslogtreecommitdiffstats
path: root/mpd-notification.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-11 09:53:51 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-11 09:53:51 +0200
commit6388fedd6303acee8d0cf10455095ba2dd678c90 (patch)
treeb2ef8e506cf272fc2fb34cb6333fa66ffaeeb6da /mpd-notification.c
parent87f0f0f36a4a65fb1acc014c8276d1ff6a152ddd (diff)
downloadmpd-notification-6388fedd6303acee8d0cf10455095ba2dd678c90.tar.gz
mpd-notification-6388fedd6303acee8d0cf10455095ba2dd678c90.tar.zst
use sizeof()
Diffstat (limited to 'mpd-notification.c')
-rw-r--r--mpd-notification.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index 416c019..6baa627 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -84,7 +84,7 @@ int main(int argc, char ** argv) {
if ((album = g_markup_escape_text(mpd_song_get_tag(song, MPD_TAG_ALBUM, 0), -1)) == NULL)
album = TEXT_UNKNOWN;
- notifystr = malloc(strlen(TEXT_PLAY) + strlen(title) + strlen(artist) + strlen(album));
+ notifystr = malloc(sizeof(TEXT_PLAY) + strlen(title) + strlen(artist) + strlen(album));
sprintf(notifystr, TEXT_PLAY, title, artist, album);
mpd_song_free(song);