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:
@@ -37,6 +37,13 @@ namespace {
|
||||
result);
|
||||
|
||||
LocalFree(lpMsgBuf);
|
||||
#elif __APPLE__
|
||||
snprintf(msg,
|
||||
ERR_MSG_MAX_LEN,
|
||||
"%s error: %s(0x%.8x)",
|
||||
method,
|
||||
pcsc_stringify_error(result),
|
||||
result);
|
||||
#else
|
||||
snprintf(msg,
|
||||
ERR_MSG_MAX_LEN,
|
||||
|
||||
Reference in New Issue
Block a user