File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2525 try { \
2626 OpenZWave::Manager::Get () -> METHOD ( __VA_ARGS__ ); \
2727 } catch ( OpenZWave::OZWException& e ) { \
28- char buffer [100 ]; \
29- sprintf (buffer, " Exception calling OpenZWave::Manager::%s in %s(%d): %s" , \
28+ char buffer [200 ]; \
29+ snprintf (buffer, 200 , " Exception calling OpenZWave::Manager::%s in %s(%d): %s" , \
3030 stringify (METHOD), e.GetFile ().c_str (), e.GetLine (), e.GetMsg ().c_str ()); \
3131 Nan::ThrowError ( buffer ); \
3232 }
3535 try { \
3636 VALUE = OpenZWave::Manager::Get () -> METHOD ( __VA_ARGS__ ); \
3737 } catch ( OpenZWave::OZWException& e ) { \
38- char buffer [100 ]; \
39- sprintf (buffer, " Exception calling OpenZWave::Manager::%s in %s(%d): %s" , \
38+ char buffer [200 ]; \
39+ snprintf (buffer, 200 , " Exception calling OpenZWave::Manager::%s in %s(%d): %s" , \
4040 stringify (METHOD), e.GetFile ().c_str (), e.GetLine (), e.GetMsg ().c_str ()); \
4141 Nan::ThrowError ( buffer ); \
4242 }
You can’t perform that action at this time.
0 commit comments