diff options
-rw-r--r-- | plugins/lastfm/lastfm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/lastfm/lastfm.c b/plugins/lastfm/lastfm.c index 14361445..17bc5a6b 100644 --- a/plugins/lastfm/lastfm.c +++ b/plugins/lastfm/lastfm.c @@ -347,7 +347,7 @@ static int lfm_uri_encode (char *out, int outl, const char *str) { int l = outl; //trace ("lfm_uri_encode %p %d %s\n", out, outl, str); - while (*str) { + while (*str && *((uint8_t*)str) >= 32) { if (outl <= 1) { //trace ("no space left for 1 byte in buffer\n"); return -1; |