diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2012-01-15 20:21:50 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-01-20 12:10:23 +0100 |
commit | d44f61b583a112e23a9af405968b11514979fedf (patch) | |
tree | bbb3332087374d1c59d99bbbe0f2f3213508096c /src/libpiano/xml.c | |
parent | 9a380af719b0cdb599eaf86323bd7ca9a0526482 (diff) | |
download | pianobar-d44f61b583a112e23a9af405968b11514979fedf.tar.gz pianobar-d44f61b583a112e23a9af405968b11514979fedf.tar.bz2 pianobar-d44f61b583a112e23a9af405968b11514979fedf.zip |
piano: Make sync response parser NUL-byte aware
Fixes #207
Diffstat (limited to 'src/libpiano/xml.c')
-rw-r--r-- | src/libpiano/xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libpiano/xml.c b/src/libpiano/xml.c index ce1074a..a327e82 100644 --- a/src/libpiano/xml.c +++ b/src/libpiano/xml.c @@ -256,7 +256,7 @@ static void PianoXmlParsePlaylistCb (const char *key, const ezxml_t value, /* don't try to decrypt if string is too short (=> invalid memory * reads/writes) */ if (valueStrN > urlTailN && - (urlTail = PianoDecryptString (urlTailCrypted)) != NULL) { + (urlTail = PianoDecryptString (urlTailCrypted, NULL)) != NULL) { if ((song->audioUrl = calloc (valueStrN + 1, sizeof (*song->audioUrl))) != NULL) { memcpy (song->audioUrl, valueStr, valueStrN - urlTailN); |