Fix a few warnings occurring on macOS
I think both the warnings about using sprintf
and #import
aren't present on Linux (but they are on macOS with clang). Still, it's probably worth fixing, even if these are minor issues.
-
sprintf
/vsprintf
is replaced withsnprintf
/vsnprintf
for security reasons -
#import
isn't part of the C++ standard