# HG changeset patch # User Andrej # Date 1219084595 -7200 # Node ID 9ec994a3bb59483459b721758fd2e377a318a1b1 # Parent d354afe9df0ddcf132dd123aee3a67c08044f91a fix handshake (Bugzilla #62) diff -r d354afe9df0d -r 9ec994a3bb59 src/scrobbler/scrobbler.c --- 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);