aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authornovel <novel@FreeBSD.org>2005-11-27 01:20:40 +0800
committernovel <novel@FreeBSD.org>2005-11-27 01:20:40 +0800
commita3051d1ab14090b29268bac1a84de3ddbad17f93 (patch)
tree525f33b25a1a54c9707f277073fe6a43d4759652 /audio
parenta2158c64469a4105a6f32c1f9c87b8073f50e217 (diff)
downloadfreebsd-ports-gnome-a3051d1ab14090b29268bac1a84de3ddbad17f93.tar.gz
freebsd-ports-gnome-a3051d1ab14090b29268bac1a84de3ddbad17f93.tar.zst
freebsd-ports-gnome-a3051d1ab14090b29268bac1a84de3ddbad17f93.zip
Fix submission of tracks with a tag element greater than 256 characters.
Submitted by: David Scheidt <dscheidt@panix.com> Obtained from: Pipian (plugin's author)
Diffstat (limited to 'audio')
-rw-r--r--audio/scrobbler/files/patch-scrobbler.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/scrobbler/files/patch-scrobbler.c b/audio/scrobbler/files/patch-scrobbler.c
new file mode 100644
index 000000000000..07148bac36c3
--- /dev/null
+++ b/audio/scrobbler/files/patch-scrobbler.c
@@ -0,0 +1,15 @@
+--- scrobbler.c.orig Mon Feb 21 03:45:05 2005
++++ scrobbler.c Sat Nov 26 20:14:10 2005
+@@ -382,9 +382,9 @@
+
+ static gchar *sc_itemtag(char c, int n, char *str)
+ {
+- static char buf[256];
+- snprintf(buf, 256, "&%c[%d]=%s", c, n, str);
+- return buf;
++ static char buf[1024];
++ snprintf(buf, 1024, "&%c[%d]=%s", c, n, str);
++ return buf;
+ }
+
+ #define cfa(f, l, n, v) \