fix build with clang6
This commit is contained in:
parent
d1d8dca9bf
commit
98f12858a0
14
lang/jruby/patches/patch-jruby-launcher_argparser_cpp
Normal file
14
lang/jruby/patches/patch-jruby-launcher_argparser_cpp
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-jruby-launcher_argparser_cpp,v 1.1 2018/04/11 15:26:18 naddy Exp $
|
||||
|
||||
Index: jruby-launcher/argparser.cpp
|
||||
--- jruby-launcher/argparser.cpp.orig
|
||||
+++ jruby-launcher/argparser.cpp
|
||||
@@ -132,7 +132,7 @@ bool ArgParser::initPlatformDir() {
|
||||
|
||||
if (getenv("JRUBY_HOME") != NULL) {
|
||||
logMsg("initPlatformDir: using JRUBY_HOME environment variable");
|
||||
- char sep[2] = { FILE_SEP, NULL };
|
||||
+ char sep[2] = { FILE_SEP, 0 };
|
||||
strncpy(path, getenv("JRUBY_HOME"), PATH_MAX - 11);
|
||||
strncpy(path + strlen(path), sep, 1);
|
||||
strncpy(path + strlen(path), "bin", 3);
|
Loading…
Reference in New Issue
Block a user