mirror of
https://github.com/lovell/sharp.git
synced 2026-02-04 13:46:19 +01:00
Improve code portability ahead of Windows support
This commit is contained in:
@@ -76,7 +76,7 @@ NAN_METHOD(counters) {
|
||||
NAN_METHOD(libvipsVersion) {
|
||||
NanScope();
|
||||
char version[9];
|
||||
snprintf(version, sizeof(version), "%d.%d.%d", vips_version(0), vips_version(1), vips_version(2));
|
||||
g_snprintf(version, sizeof(version), "%d.%d.%d", vips_version(0), vips_version(1), vips_version(2));
|
||||
NanReturnValue(NanNew<String>(version));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user