src: fix snprintf format for OSX

- As LONG is defined as a int32_t in OSX.

PR-URL: https://github.com/santigimeno/node-pcsclite/pull/44
This commit is contained in:
Santiago Gimeno
2015-09-17 07:52:07 +02:00
parent 1956507f27
commit 83be0bdf61

View File

@@ -37,6 +37,13 @@ namespace {
result); result);
LocalFree(lpMsgBuf); LocalFree(lpMsgBuf);
#elif __APPLE__
snprintf(msg,
ERR_MSG_MAX_LEN,
"%s error: %s(0x%.8x)",
method,
pcsc_stringify_error(result),
result);
#else #else
snprintf(msg, snprintf(msg,
ERR_MSG_MAX_LEN, ERR_MSG_MAX_LEN,