Skip to content

Commit

Permalink
Forgot the null terminator
Browse files Browse the repository at this point in the history
  • Loading branch information
ammrat13 committed Jan 14, 2024
1 parent 66d379b commit 3ea44e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tccpp_rott-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
data = inp.read()
serialized_data = ','.join(map(lambda c: f"0x{ord(c):02x}", data))

out.write(f"static char rott_quine_data[] = {{{serialized_data}}};\n")
out.write(f"static char rott_quine_data[] = {{{serialized_data},0x00}};\n")
out.write(data)

0 comments on commit 3ea44e4

Please sign in to comment.