Mercurial > audlegacy
changeset 1340:eaa1b6342e75 trunk
[svn] - itemtag buffer was too short. e.g. 256 bytes could hold only 28 url encoded kanji characters.
author | yaz |
---|---|
date | Tue, 27 Jun 2006 23:14:47 -0700 |
parents | cf44bc209040 |
children | 981ffc1cc402 |
files | ChangeLog Plugins/General/scrobbler/scrobbler.c |
diffstat | 2 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Jun 27 20:32:51 2006 -0700 +++ b/ChangeLog Tue Jun 27 23:14:47 2006 -0700 @@ -1,3 +1,14 @@ +2006-06-28 03:32:51 +0000 William Pitcock <nenolod@nenolod.net> + revision [1590] + - improve resampling rate detection algorithm + - remove debugging code + + + Changes: Modified: + +1 -1 trunk/Plugins/Input/mpg123/mpg123.c + +0 -2 trunk/Plugins/Input/mpg123/resample.c + + 2006-06-28 02:52:20 +0000 William Pitcock <nenolod@nenolod.net> revision [1588] - add a note explaining that this algorithm sucks and will be discarded before 1.1 release
--- a/Plugins/General/scrobbler/scrobbler.c Tue Jun 27 20:32:51 2006 -0700 +++ b/Plugins/General/scrobbler/scrobbler.c Tue Jun 27 23:14:47 2006 -0700 @@ -18,6 +18,7 @@ #define SCROBBLER_SB_WAIT 10 #define SCROBBLER_VERSION "1.1" #define SCROBBLER_IMPLEMENTATION "0.1" /* This is the implementation, not the player version. */ +#define SCROBBLER_SB_MAXLEN 1024 #define CACHE_SIZE 1024 /* Scrobblerbackend for xmms plugin, first draft */ @@ -382,8 +383,8 @@ static gchar *sc_itemtag(char c, int n, char *str) { - static char buf[256]; - snprintf(buf, 256, "&%c[%d]=%s", c, n, str); + static char buf[SCROBBLER_SB_MAXLEN]; + snprintf(buf, SCROBBLER_SB_MAXLEN, "&%c[%d]=%s", c, n, str); return buf; }