From b48381cda166808c879fabf2a263b66012e7c2aa Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 5 Dec 2021 23:10:06 +0800 Subject: Update bin2c.lua --- xmake/modules/private/utils/bin2c.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/private/utils/bin2c.lua b/xmake/modules/private/utils/bin2c.lua index 409162f00..6f18833fc 100644 --- a/xmake/modules/private/utils/bin2c.lua +++ b/xmake/modules/private/utils/bin2c.lua @@ -85,7 +85,7 @@ function _do_bin2c(binarypath, outputpath, opt) local binarydata = bytes(io.readfile(binarypath, {encoding = "binary"})) local outputfile = io.open(outputpath, 'w') if outputfile then - if opt.nozeroend then + if not opt.nozeroend then binarydata = binarydata .. bytes('\0') end _do_dump(binarydata, outputfile, opt) -- cgit v1.3.1