# HG changeset patch # User yaz # Date 1151475287 25200 # Node ID eaa1b6342e75bed1b68063b8ef13b2b80c042339 # Parent cf44bc209040adb833189ba8621a7ccb6330f5ce [svn] - itemtag buffer was too short. e.g. 256 bytes could hold only 28 url encoded kanji characters. diff -r cf44bc209040 -r eaa1b6342e75 ChangeLog --- 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 + 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 revision [1588] - add a note explaining that this algorithm sucks and will be discarded before 1.1 release diff -r cf44bc209040 -r eaa1b6342e75 Plugins/General/scrobbler/scrobbler.c --- 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; }