summaryrefslogtreecommitdiff
path: root/libpiano
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-08-25 11:36:22 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-08-25 11:36:22 +0200
commit496e61c506f283135a52a95dec5bf43c87e39cc8 (patch)
treea5b0ccad981a5028bc11f4f89ea95ab1d6612c9b /libpiano
parent0ede4190664c77a3c603be157899dd2bec46f9f4 (diff)
downloadpianobar-windows-496e61c506f283135a52a95dec5bf43c87e39cc8.tar.gz
pianobar-windows-496e61c506f283135a52a95dec5bf43c87e39cc8.tar.bz2
pianobar-windows-496e61c506f283135a52a95dec5bf43c87e39cc8.zip
piano: Fix random audioUrl decoding errors
Diffstat (limited to 'libpiano')
-rw-r--r--libpiano/src/crypt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpiano/src/crypt.c b/libpiano/src/crypt.c
index 8111547..eef1057 100644
--- a/libpiano/src/crypt.c
+++ b/libpiano/src/crypt.c
@@ -45,6 +45,7 @@ void PianoHexToInts (const char *strHex, unsigned int **retInts,
/* unsigned int = 4 bytes, 8 chars in hex */
for (i = 0; i < strHexN; i += 8) {
memcpy (hexInt, strHex+i, sizeof (hexInt)-1);
+ hexInt[sizeof (hexInt) - 1] = 0;
sscanf (hexInt, "%x", &arrInts[i/8]);
}
*retInts = arrInts;