We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 087667a commit 4d033a8Copy full SHA for 4d033a8
src/win32/configure.js
@@ -61,7 +61,9 @@ function readVersion() {
61
} else if (s.search(/^m4_define\(\[libmodbus_version_minor/) != -1) {
62
verMinor = s.substr(s.indexOf(",") + 3, 1);
63
} else if (s.search(/^m4_define\(\[libmodbus_version_micro/) != -1) {
64
- verMicro = s.substr(s.indexOf(",") + 3, 1);
+ str_start_idx = s.indexOf(",") + 3;
65
+ num_str_length = s.length - str_start_idx - 2;
66
+ verMicro = s.substr(str_start_idx, num_str_length);
67
}
68
69
cf.Close();
0 commit comments