diff options
author | novel <novel@FreeBSD.org> | 2005-11-26 17:20:40 +0000 |
---|---|---|
committer | novel <novel@FreeBSD.org> | 2005-11-26 17:20:40 +0000 |
commit | a3051d1ab14090b29268bac1a84de3ddbad17f93 (patch) | |
tree | 525f33b25a1a54c9707f277073fe6a43d4759652 /audio | |
parent | a2158c64469a4105a6f32c1f9c87b8073f50e217 (diff) | |
download | FreeBSD-ports-a3051d1ab14090b29268bac1a84de3ddbad17f93.zip FreeBSD-ports-a3051d1ab14090b29268bac1a84de3ddbad17f93.tar.gz |
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.c | 15 |
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 0000000..07148ba --- /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) \ |