Index: tls/vortex_tls.c =================================================================== --- tls/vortex_tls.c (revision 715) +++ tls/vortex_tls.c (working copy) @@ -2112,7 +2112,7 @@ /* translate value returned into an octal representation */ for (iterator = 0; iterator < md_len; iterator++) { #if defined(AXL_OS_WIN32) && ! defined(__GNUC__) - sprintf_s (result + (iterator * 3), (md_len * 3), "%02X%s", + sprintf_s (result + (iterator * 3), (md_len - iterator) * 3, "%02X%s", buffer [iterator], (iterator + 1 != md_len) ? ":" : ""); #else