Skip to content

Commit

Permalink
FIXED: Pass command line arguments in class Prolog.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Nov 24, 2024
1 parent 97ecca8 commit 848bc2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wasm/prolog.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class Prolog
let argv = argv0.map(function(arg) {
const len = lengthBytesUTF8(arg);
const s = _malloc(len+1);
stringToUTF8(arg, s, len);
stringToUTF8(arg, s, len+1);
return s;
}, this);
var ptr = _malloc(argv.length * 4);
Expand Down

0 comments on commit 848bc2d

Please sign in to comment.