summaryrefslogtreecommitdiff
path: root/plugins/gtkui/trkproperties.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-19 21:34:29 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-19 21:34:29 +0200
commit517500d17fda204dead342b966a9c5b3a9ad9edc (patch)
tree9526da87d746f556f9e009428a9f4eb0e23bcc3d /plugins/gtkui/trkproperties.c
parent8664e1176984d3e67c15a52a22737e4d8d9ef782 (diff)
gtkui: fixed accidentally broken tag writing
Diffstat (limited to 'plugins/gtkui/trkproperties.c')
-rw-r--r--plugins/gtkui/trkproperties.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gtkui/trkproperties.c b/plugins/gtkui/trkproperties.c
index 53b22988..e3198db1 100644
--- a/plugins/gtkui/trkproperties.c
+++ b/plugins/gtkui/trkproperties.c
@@ -537,7 +537,7 @@ set_metadata_cb (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpoi
for (int i = 0; i < numtracks; i++) {
const char *oldvalue= deadbeef->pl_find_meta_raw (tracks[i], skey);
- if (oldvalue) {
+ if (oldvalue && strlen (oldvalue) > MAX_GUI_FIELD_LEN) {
fprintf (stderr, "trkproperties: value is too long, ignored\n");
continue;
}