# HG changeset patch # User Matti Hamalainen # Date 1157911020 0 # Node ID bf4664ed897d91a031a589547fb0a94a30dbf25b # Parent 22662724661661a1a4f6a6c9ad5cf7802d5b9ea0 sscanf() was used in unaligned access, causing problems on Sparc (and possibly other archs requiring alignment), fixed. diff -r 226627246616 -r bf4664ed897d src/xs_length.c --- a/src/xs_length.c Sun Sep 10 17:47:05 2006 +0000 +++ b/src/xs_length.c Sun Sep 10 17:57:00 2006 +0000 @@ -117,8 +117,9 @@ /* Get hash value */ linePos = 0; for (i = 0; i < XS_MD5HASH_LENGTH; i++, linePos += 2) { - sscanf(&inLine[linePos], "%2x", - (guint *) &(tmpNode->md5Hash[i])); + gint tmpu; + sscanf(&inLine[linePos], "%2x", &tmpu); + tmpNode->md5Hash[i] = tmpu; } /* Get playtimes */