2
0
mirror of https://github.com/boostorg/context.git synced 2026-01-31 08:02:17 +00:00

icontext: use snprintf in seh handler

[SVN r78033]
This commit is contained in:
Oliver Kowalke
2012-04-17 07:31:34 +00:00
parent b5d3fe3e08
commit 0874afa175

View File

@@ -26,7 +26,7 @@ static char * exception_description(
{
const char * accessType = ( info[0]) ? "writing" : "reading";
const ULONG_PTR address = info[1];
_snprintf_s( description, len, _TRUNCATE, "Access violation %s 0x%08X", accessType, address);
snprintf( description, len, "Access violation %s 0x%08X", accessType, address);
return description;
}
case EXCEPTION_DATATYPE_MISALIGNMENT: return "Datatype misalignment";
@@ -52,8 +52,7 @@ static char * exception_description(
case EXCEPTION_INVALID_HANDLE: return "Invalid handle";
}
_snprintf_s( description, len, _TRUNCATE, "Unknown (0x%08X)", code);
snprintf( description, len, "Unknown (0x%08X)", code);
return description;
}