diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2016-02-24 21:59:25 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2016-02-25 13:21:53 +0100 |
commit | 96adbe95037fcc572d34484ea5d7ecd82911fda6 (patch) | |
tree | f420162784e09363ee3615af3c3aada9c2684bc2 /tools | |
parent | cdc7e025e0d3b9f18403c53d523f99cc91051e58 (diff) | |
download | node-new-96adbe95037fcc572d34484ea5d7ecd82911fda6.tar.gz |
src,tools: drop nul byte from built-in source code
PR-URL: https://github.com/nodejs/node/pull/5418
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/js2c.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/js2c.py b/tools/js2c.py index 9c5878a668..761e80be59 100755 --- a/tools/js2c.py +++ b/tools/js2c.py @@ -42,7 +42,7 @@ import jsmin def ToCArray(filename, lines): - return ','.join(str(ord(c)) for c in lines + '\0') + return ','.join(str(ord(c)) for c in lines) def CompressScript(lines, do_jsmin): @@ -221,7 +221,7 @@ static const struct _native natives[] = { NATIVE_DECLARATION = """\ - { "%(id)s", %(escaped_id)s_native, sizeof(%(escaped_id)s_native)-1 }, + { "%(id)s", %(escaped_id)s_native, sizeof(%(escaped_id)s_native) }, """ SOURCE_DECLARATION = """\ |