Mercurial > audlegacy-plugins
changeset 2919:9ec994a3bb59
fix handshake (Bugzilla #62)
author | Andrej <herceg.andrej@zoznam.sk> |
---|---|
date | Mon, 18 Aug 2008 20:36:35 +0200 |
parents | d354afe9df0d |
children | c634799dd0bd 1197c13e4217 |
files | src/scrobbler/scrobbler.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/scrobbler/scrobbler.c Mon Aug 18 14:17:58 2008 +0300 +++ b/src/scrobbler/scrobbler.c Mon Aug 18 20:36:35 2008 +0200 @@ -479,12 +479,12 @@ auth_tmp = g_strdup_printf("%s%ld", sc_password, ts); auth = (char *)md5_string(auth_tmp, strlen(auth_tmp)); g_free(auth_tmp); - hexify(auth, strlen(auth)); + hexify(auth, 16); auth_tmp = g_strdup(sc_response_hash); g_snprintf(buf, sizeof(buf), "%s/?hs=true&p=%s&c=%s&v=%s&u=%s&t=%ld&a=%s", SCROBBLER_HS_URL, SCROBBLER_VERSION, - SCROBBLER_CLI_ID, SCROBBLER_IMPLEMENTATION, sc_username, time(NULL), + SCROBBLER_CLI_ID, SCROBBLER_IMPLEMENTATION, sc_username, ts, auth_tmp); g_free(auth_tmp);