Skip to content

Commit

Permalink
Merge pull request #16218 from stevengj/jl_load_strlen
Browse files Browse the repository at this point in the history
fix inconsistent use of strlen in jl_load
  • Loading branch information
JeffBezanson committed May 6, 2016
2 parents fdc4a85 + bb2f67d commit 775dc82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ jl_value_t *jl_parse_eval_all(const char *fname, size_t len,
jl_ast_context_t *ctx = jl_ast_ctx_enter();
fl_context_t *fl_ctx = &ctx->fl;
value_t f, ast;
f = cvalue_static_cstring(fl_ctx, fname);
f = cvalue_static_cstrn(fl_ctx, fname, len);
fl_gc_handle(fl_ctx, &f);
if (content != NULL) {
value_t t = cvalue_static_cstrn(fl_ctx, content, contentlen);
Expand Down
2 changes: 1 addition & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ void _julia_init(JL_IMAGE_SEARCH rel)
jl_current_module;
}

jl_load("boot.jl", sizeof("boot.jl"));
jl_load("boot.jl", sizeof("boot.jl")-1);
jl_get_builtin_hooks();
jl_boot_file_loaded = 1;
jl_init_box_caches();
Expand Down

0 comments on commit 775dc82

Please sign in to comment.